161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
730f0e56b5
Fix #18821 : Allow yii\db\ExpressionInterface as column in yii\db\conditions\InBuilder
2022-02-08 16:51:38 +03:00
8784331022
Fix #18385 : Add ci-oracle and fix tests
...
* Add github action for testing oci8 Oracle.
* Fix CommandTest::testQueryCache.
* Fix tests CommandTest::testBindParamsNonWhere.
* Fix test CommandTest::testInsert.
* Fix test CommanTest::testInsertExpression.
* Fix test CommandTest::testInsertSelectAlias.
* Fix test CommandTest::testBindParamValue.
* Fix tests CommandTest::testBatchInsertDataTypesLocale.
* Fix test CommandTest::testNoTablenameReplacement.
* Fix test CommandTest::testCreateTable.
* Fix test CommandTest::testsInsertQueryAsColumnValue.
* Fix tests CommandTest::testAlterTable.
* Fix test CommandTest::testCreateView.
* Fix test CommandTest::testTransaction.
* Fix test ConnectionTest::testTransactionShortcutCorrect.
* Fix test ConnectionTest::testTransactionShortcutCustom.
* Fix test ConnectionTest::testEnableQueryLog.
* Fix test QueryBuilder::testAddDropDefaultValue.
* Fix test QueryTest::testUnion.
* Fix test QueryTest::testExpressionInFrom.
* Fix test SchemaTest::testFindUniqueIndexes.
* Fix test QueryBuilderTest::testGetColumnType.
* Fix test ActiveRecordTest::testFind.
* Fix test ExistValidatorTest::testExpresionInAttributeColumnName.
* Fix test UniqueValidatorTest::testExpressionInAttributeColumnName.
* Fix ActiveRecordTest testCastValues(), testDefaultValues.
* Fix test UniqueValidatorTest::testValidateAttributeDefault.
* Fix test UniqueValidatorTest::testValidateEmptyAttributeInStringField.
* Fix test UniqueValidatorTest::testValidateEmptyAttributeInIntField.
* Fix test ActiveRecordTest::testBit.
* Fix test ActiveRecordTest::testBooleanAttribute.
* Fix test ActiveRecordTest::testJoinWithAlias.
* Fix test SchemaTest::testColumnSchema.
* Fix test CommandTest:: testBatchInsertSQL.
* Skip CommandTest::testColumnCase.
* Fix test ConnectionTest::testQuoteValue.
* Should be fixed tests conditionsProvider in QueryBuilderTest.
* Fix ActiveRecordTest.php
* Fix test UniqueValidatorTest.
* Fix test QueryBuilderTest::testUpsert.
* Skip SchemaTest::testCompositeFK.
2020-11-23 23:12:01 +03:00
e5e80ac5ec
Fix testGetColumType for PostgreSQL ( #18279 )
2020-09-11 19:23:00 +03:00
54be5503c9
#18134 : Use better string name in a test
2020-07-03 16:55:00 +03:00
1faa45c552
Fix #18134 : Expression as columnName should not be quoted in likeCondition
2020-07-03 12:27:31 +03:00
7ca23a2413
Revert "Fix #18134 : Instance of ExpressionInterface will not be quoted in Connection:quoteColumnName"
...
This reverts commit e342162425d3e63b3ae3affef82220f6b64e01f9.
2020-06-30 21:37:57 +03:00
e342162425
Fix #18134 : Instance of ExpressionInterface will not be quoted in Connection:quoteColumnName
2020-06-30 17:59:23 +03:00
37fc929285
Fix #18010 : Allow upper or lower case operators in InCondition and LikeCondition
2020-05-02 13:28:06 +03:00
a66fac3bb1
Fix #17758 : Query::withQuery() can be used for CTE
2020-04-13 11:58:18 +03:00
0643ef312d
Corrected tests
2020-04-08 15:29:54 +02:00
817c264181
Fix #17661 : Fix query builder incorrect IN/NOT IN condition handling for null values
2019-12-17 13:58:07 +03:00
062ebf5c0b
Fix #17549 : Fix yii\db\ExpressionInterface not supported in yii\db\conditions\SimpleConditionBuilder
2019-09-10 18:21:53 +03:00
cdd40b8dfb
Fix #17504 : Fix upsert when $updateColumns = true but there are no columns to update in the table
2019-08-21 11:56:20 +03:00
69cf9de56b
Fix #17473 : Fixed SimpleConditionBuilder::build() when column is not a string
2019-08-01 13:20:37 +03:00
6fc04a622e
Fix #17219 : Fixed quoting of table names with spaces in MSSQL
2019-07-19 13:48:57 +03:00
869f475dc1
Fix #17413 , fix #17418 : Fixed MSSQL tests
2019-07-10 17:30:41 +03:00
55b06d2364
Fix #17413 : Fixed MSSQL tests: QueryBuilderTest::testGetColumnType(), QueryBuilderTest::testResetSequence()
2019-07-09 11:47:55 +03:00
56f639358c
Add MSSQL tests ( #17410 )
2019-07-04 15:51:01 +03:00
54b3d6d8ab
Fixes #17344 : Improved performance of yii\db\Connection::addSelect()
2019-06-11 16:14:38 +03:00
b128ec85f4
Fixes #16081 : Fixed composite IN using just one column
2018-12-31 06:41:25 -05:00
9f383ab228
Fixes #14367 : In yii\db\mysql\QueryBuilder added support fractional seconds for time types for MySQL >= 5.6.4
2018-10-11 14:43:32 +03:00
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