SilverFire - Dmitry Naumenko
8f2cd050af
Fixed Query not to dig inside Expression
7 years ago
Alexander Makarov
f22f4a41c9
Removed empty array tests since it causes issues for ActiveQuery
7 years ago
Alexander Makarov
ba931fa21d
Fixes #15356 : Fixed multiple bugs in `yii\db\Query::getTablesUsedInFrom()`
7 years ago
vladis
6c731d46d0
#15356 : Initial version of `yii\db\Query::getTablesUsedInFrom()` fix and tests
7 years ago
rossoneri
605478c043
Fixes #14157 : Add support for loading default value `CURRENT_TIMESTAMP` of MySQL `datetime` field
7 years ago
Sergey Makinen
315855f7f5
Fixes #15357 : Added multi statement support for `yii\db\sqlite\Command`
7 years ago
Гордиенко Владислав Юрьевич
dc019856b7
Fixes #15355 : Fixed `yii\db\Query::from()` does not work with `yii\db\Expression`
7 years ago
Gabriel Caruso
2992b9b09d
Refactored tests with PHPUnit assert methods ( #15260 )
7 years ago
Sergey Makinen
b7d5393a08
Fixes #15194 : Fixed `yii\db\QueryBuilder::insert()` to preserve passed params when building a `INSERT INTO ... SELECT` query for MSSQL, PostgreSQL and SQLite
7 years ago
Sergey Makinen
85b65c889a
Fixes #15117 : Fixed DB schema cache did not honor table prefixes
7 years ago
Sergey Makinen
4e176ca325
Fixes #15108 : Fixed `yii\db\Schema::getSchemaNames()` for MSSQL and added tests for all DBMSes
7 years ago
Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
SilverFire - Dmitry Naumenko
c0d8b0a817
Fixed sqlite tests
...
Prevent marking some tests as risky
7 years ago
SilverFire - Dmitry Naumenko
06d7a1f0c6
Improved ConnectionTest performance
...
Methods testMastersShuffled and testMastersSequential executed about 30 seconds each.
This commit reduces execution time to 2-5 seconds each.
7 years ago
Dmitry Naumenko
7e7faeebd1
Fixed excess escaping in Command::batchInsert() ( #13236 )
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
SilverFire - Dmitry Naumenko
b0148a5e8f
Added test to check issue #14274
7 years ago
Alexander Makarov
24efeb812c
Added tests for Query Builder insert, update and delete ( #14911 )
7 years ago
Klimov Paul
9e6f9e3b6d
Fixed serialization of `yii\db\Connection` instance closes database connection
7 years ago
Paul Klimov
d68789a195
Fixes #13779 , fixes #5786
...
- #13779 : Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786 : Allowed to use custom constructors in ActiveRecord-based classes.
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
0c0942d6e2
Enable `phpdoc_add_missing_param_annotation` rule in php-cs-fixer config. ( #14681 ) [skip ci]
7 years ago
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
7 years ago
Carsten Brandt
3dbc07f8dd
fix test to work around PDO bug
...
This test is failing on PHP 7.0.7 on travis but seems fine
on PHP 7.1.x > 7.1.0-alpha
See:
- cda3089623
- https://gist.github.com/cebe/badfec47a8c3fcc4ffcf1625ca8e0655
7 years ago
Alexander Makarov
7cac7f131d
Set back original locale in #14448 test
7 years ago
Carsten Brandt
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
7 years ago
Robert Korulczyk
6782ad96f0
Reduce `Segmentation fault` errors for PHP 5.4 tests on travis. ( #14092 )
7 years ago
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