839112a919
Issue #14834 : skip 'TIMESTAMP' definition test when NO_ZERO_DATE enabled ( #15987 )
...
This is a temporary patch to be able to run tests on local configurations without additional MySQL 5.7 tuning.
This will not affect travis builds because travis running with NO_ZERO_DATE disabled.
2018-03-27 19:22:56 +03:00
0177d68476
Commit da06c4a1 reduced num of useless brackets in SQL. Fixing tests
2018-02-17 00:15:12 +02:00
da06c4a1e1
Fixed QueryBuilder::buildCondition() to skip empty array on input
...
Fixes #15653
2018-02-16 23:46:08 +02:00
ad0c19de3a
Merge pull request #15643 from SilverFire/make-query-expression
...
Implement ExpressionInterface in Query
2018-02-12 17:54:46 +02:00
44ab0414b6
fixing tests
2018-02-12 16:56:46 +02:00
898fbfc6f8
fixed tests
2018-02-12 16:03:08 +02:00
df91a9608f
Fixes #14638 : Added yii\db\SchemaBuilderTrait::tinyInteger()
2018-02-12 12:01:21 +03:00
5e8fd58ddb
15630 fixed like escaping ( #15642 )
...
* Tests for like escaping.
* Fix for like condition escaping
* Fixed PHPDocs
* Simplify tests
2018-02-11 22:59:24 +03:00
23dbbb9fd7
Merge branch 'master' into make-query-expression
2018-02-11 20:05:32 +02:00
1bbd2e1993
Add ExpressionInterface to Query class
2018-02-11 20:02:27 +02:00
62d4604269
Added BetweenConditionBuilder
...
Replaces #12678 , Fixes #11611
2018-02-11 18:55:07 +02:00
de1750228d
Fixes #13879 : Added upsert support for yii\db\QueryBuilder
and yii\db\Command
2018-02-09 01:05:50 +03:00
b7d5393a08
Fixes #15194 : Fixed yii\db\QueryBuilder::insert()
to preserve passed params when building a INSERT INTO ... SELECT
query for MSSQL, PostgreSQL and SQLite
2017-11-24 15:19:34 +07:00
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +03:00
24efeb812c
Added tests for Query Builder insert, update and delete ( #14911 )
2017-10-04 14:34:43 +02:00
5a8c3d537b
Enable phpdoc_summary
rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
0c0942d6e2
Enable phpdoc_add_missing_param_annotation
rule in php-cs-fixer config. ( #14681 ) [skip ci]
2017-08-21 01:57:23 +03:00
237e7eda3a
Merge branch 'master' of https://github.com/yiisoft/yii2 into db-constraints
2017-06-28 21:42:55 +03:00
e38310546e
Fixes #14334 : Fixed \yii\db\QueryBuilder::buildNotCondition
loses params when operand is \yii\db\Expression
2017-06-27 14:46:14 +03:00
c8856ccd4e
Fix merging issues & CS
2017-06-17 01:02:01 +03:00
f820d2ca36
Merge branch 'master' into db-constraints
2017-06-16 16:52:43 +03:00
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.
2017-06-12 12:25:45 +03:00
73ac13e6d7
Implement retrieving dbms constraints
2017-05-15 20:55:25 +03:00
d8e6a89af9
fixed tests without assettions
2017-04-13 16:17:35 +03:00
1b322f519f
Fixes #13776 : Fixed setting precision and scale for decimal columns in MSSQL
2017-03-16 19:38:56 +03:00
3f8e8a89eb
Used more specific unit test assertions in framework tests
2017-03-14 09:45:31 +03:00
6397791513
Fixed whitespaces to match code style [skip ci]
2017-03-14 09:42:13 +03:00
9a915ba10c
Fixes #8120 : Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in yii\db\QueryBuilder
2017-02-24 01:24:06 +03:00
fab53b4a6e
Fixes #13582 : Added tests for all yii\db\QueryBuilder::resetSequence
implementations, fixed SQLite implementation
2017-02-20 23:04:04 +03:00
2f8225a244
Fixed QueryBuilderTest to work with PgSQL and other DBMS
2016-12-17 21:58:22 +02:00
54c7e0c434
Added tests for QueryBuilder::batchInsert()
2016-12-17 19:20:01 +02:00
ae83dd0524
Fixes #13128 : Fixed incorrect position of {pos} string in ColumnSchemaBuilder __toString
2016-12-11 23:36:35 +03:00
b8bf0d0c0c
added hint into foreign keys query for oracle 11g optimisation
...
update oci tests
improved varible name
Closes #13122
2016-12-10 20:26:22 +02:00
fb210b8839
Fixed typo in data type. Fixes #12599
2016-09-26 14:06:08 +03:00
3861108553
Fixed casting of binnary()
type for MSSQL. Closes #12599
2016-09-26 13:41:27 +03:00
ef0658726f
Revert "Revert "fixed mysql defaul integer display width on unsigned pk""
...
This reverts commit 144d78ebb46874cd229f5c13ac3ca7ce3d59f1f2.
fixes #11541
2016-08-08 13:36:08 +02:00
144d78ebb4
Revert "fixed mysql defaul integer display width on unsigned pk"
...
This reverts commit 85d89e489311e20c626bcb90129c0c86978fcee4 because it
is a breaking change. see #11541
2016-08-08 11:54:29 +02:00
85d89e4893
fixed mysql defaul integer display width on unsigned pk
...
fixes #11541
2016-08-08 10:47:34 +02:00
099b364b14
Fixed #9574 : Implicit run ColumnSchemaBuilder::null() when default value is set to null. ( #11813 )
2016-06-25 15:52:11 +03:00
4e3c9e4a98
fixed scalar value for IN condition
...
fixes regression from 2.0.8 #10961
fixes #11536
2016-06-20 15:20:21 +02:00
7cea46bcb4
Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289
2016-06-06 19:57:42 +03:00
0a60466729
Fixes #11527 : Fixed bigPrimaryKey()
for SQLite
2016-06-06 19:33:22 +03:00
8c2a70b3e7
Moved TraversableObject to yiiunit\data\base namespace
2016-04-26 13:30:37 +03:00
e2e4f76229
Updated SqliteQueryBuilderTest to work with Composite in conditions
...
Updated code style, CHANGELOG
2016-04-25 23:36:41 +03:00
baab8d6a68
QueryBuilder now supports Traversable
objects for IN
clauses.
2016-04-25 23:36:32 +03:00
fd68e6814e
added failing test for #11088
2016-04-22 11:01:53 +02:00
2478ba7b20
QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes()
2016-04-20 09:35:43 +03:00
1aa2f1d927
Removed sqlite/ColumnSchemaBuilder::comment() method override
2016-04-19 18:29:12 +03:00
0fe27b9d3b
Refactored code in PR #9441
2016-04-19 17:48:25 +03:00