Carsten Brandt
69673c0c94
Rename Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
qihuajun
f5e8a89319
Fix slave usage disabled after Connection::close, set _slave to false instead of nulll
...
fixes #14165
close #14168
7 years ago
Carsten Brandt
c9347b0a57
Fixed ambiguous column error on indexBy with JOIN
...
fixes #13859
close #14431
7 years ago
Carsten Brandt
173108b5b0
Move getTablesUsedInFrom() from ActiveQuery to Query
...
enable this feature on the Query level
close #14431
7 years ago
Carsten Brandt
0559a95db9
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
...
when the query adds a JOIN by default
fixes #13757
7 years ago
Robert Korulczyk
d2781cd232
Added configuration for headers in PHP files generated by `message/extract` command ( #14417 )
7 years ago
Robert Korulczyk
12eb936083
Enable `heredoc_to_nowdoc` rule in php-cs-fixer ( #14419 )
7 years ago
Sergey Makinen
452974cab3
Mark not supported constraint retrieving methods
7 years ago
Pavel Chaplygin
e38310546e
Fixes #14334 : Fixed `\yii\db\QueryBuilder::buildNotCondition` loses params when operand is `\yii\db\Expression`
7 years ago
Sergey Makinen
3de6f8e397
Rename DefaultConstraint to DefaultValueConstraint
7 years ago
Sergey Makinen
c8856ccd4e
Fix merging issues & CS
7 years ago
Carsten Brandt
f212bc6caf
ensure tablenames are not replaced in insert and update
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Tigrov
2b7e8be1e8
Fixes #14192 : Fixed wrong default null value for TIMESTAMP when using PostgreSQL
7 years ago
Carsten Brandt
6e7ea782c0
fix cloning of DB connection for sqlite in-memory db
...
fixes #14131
close #14232
7 years ago
Alex-Code
7c6620a65f
Fixes #13846 : Fixed `Query::count()` issue with `orderBy`
7 years ago
Alexander Makarov
9b8b965fcb
Fixes #14211 : Fixed regression in Unique and Exist validators
7 years ago
Sergey Makinen
52f8539135
Add Command tests
7 years ago
Sergey Makinen
47f837db0b
Fix constraint tests
7 years ago
Sergey Makinen
3a384d0ded
Disable column comment test on old CUBRID
7 years ago
Sergey Makinen
73ac13e6d7
Implement retrieving dbms constraints
7 years ago
Alexander Makarov
625d554e3a
Additional edge case for #14150
7 years ago
Alexander Makarov
8a087c8537
#14150 : Added {{ and }} to getTablesUsedInFrom() output
7 years ago
Alexander Makarov
b151b1cdb2
Fixes #14150
7 years ago
Carsten Brandt
5ed6910e1c
Added support for cloning a db connection
...
improved fix #14020
fixes #13890
https://github.com/yiisoft/yii2/pull/14020/files#r115185865
close #14121
7 years ago
Alexander Makarov
23cc4bf4fe
Further changes for unique and exist validators
...
- Combined methods for getting names and aliases of from tables
- Normalized names and aliases
- Added MSSQL syntax
- Added support for spaces in aliases and table names
7 years ago
Carsten Brandt
fb2441c3d7
moved query log logic into private method and reduced calls to getRawSql()
...
fixes #12528
7 years ago
Carsten Brandt
65ea226729
added option to disable query logging in DB command
...
fixes #12528
7 years ago
Robert Korulczyk
31e321b9b2
Remove unused imports. ( #14096 )
8 years ago
SilverFire - Dmitry Naumenko
2d0e3fb9ef
Fixed Oracle SQL queries with `IN` condition and more than 1000 parameters
8 years ago
brandonkelly
3456c4e0fd
!==
8 years ago
brandonkelly
11c0d4bf15
Skip just certain things for sqllite
8 years ago
brandonkelly
237af91e8e
Skip testAutoRefreshTableSchema on sqllite
8 years ago
brandonkelly
e242e9b0ee
Fixes #14072 : clear table schema cache for all methods that affect cache
8 years ago
Alexander Makarov
37fc6c5afb
Alternative names
8 years ago
Alexander Makarov
7db93fc33d
Refactored solution to be contained within ActiveQuery instead of helper
8 years ago
Alexander Makarov
9bd7dfc89e
Skipped segfaulting test when running on Travis and corresponding PHP versions
8 years ago
Sergey Makinen
454f0a9301
Fixes #13807 : Fixed `yii\db\QueryBuilder` to inherit subquery params when building a `INSERT INTO ... SELECT` query
8 years ago
Klimov Paul
d8e6a89af9
fixed tests without assettions
8 years ago
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
8 years ago
Sam Mousa
5675ed818d
Fixed tests
8 years ago
Sam Mousa
7ab2a1efa8
Fixed test
8 years ago
Sam Mousa
e0e07c9c1b
Added test for indexing by related fields.
8 years ago
usix298
13c2f5370f
Fixed formatting in tests [skip ci]
8 years ago
Artur Fursa
1b322f519f
Fixes #13776 : Fixed setting precision and scale for decimal columns in MSSQL
8 years ago
Alexander Makarov
3f8e8a89eb
Used more specific unit test assertions in framework tests
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Sergey Makinen
a9fb0171f7
Fixes #13745 : `SQLSTATE[HY093]: Invalid parameter number: parameter was not defined` in MSSQL and bug fixes in `yii\db\QueryBuilder::buildLikeCondition()`
8 years ago
Vladimir
55dd16f1f7
Fixes #12715 : Exception `SAVEPOINT LEVEL1 does not exist` instead of deadlock exception
8 years ago
Sergey Makinen
9a915ba10c
Fixes #8120 : Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in `yii\db\QueryBuilder`
8 years ago