ntesic
730f0e56b5
Fix #18821 : Allow `yii\db\ExpressionInterface` as column in `yii\db\conditions\InBuilder`
3 years ago
Long TRAN
6a36fa82c7
Fix #19047 , fix #19118 : Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php
3 years ago
stevekr
67ea4cf968
Fix #19148 : Fix undefined array key errors in `yii\db\ActiveRelationTrait`
3 years ago
Alexey Rogachev
4a8c72f0c4
Normalize todos ( #19045 )
3 years ago
Anton
c8d027f649
Fix #18993 : Load defaults by `attributes()` in `yii\db\ActiveRecord::loadDefaultValues()`
3 years ago
egorrishe
17742cb146
don't convert int to string if db type of column is numeric ( #18741 )
...
* write adequate test for issue #14663
* don't convert int to string if db type of column is numeric (#14663 )
* fix bigint schema test for MySql >8.0.17 (#14663 )
* Update CHANGELOG.md
* Update CHANGELOG.md
* update phpdoc [ci skip] (#14663 )
* refactoring test case to make it clearer [ci skip] (#14663 )
* check `int unsigned` in `QueryBuilderTest::testInsertInteger()` (#14663 )
* Update Upgrade.md (#14663 )
* fix `int unsigned` schema test for MySql >8.0.17 (#14663 )
* fix `int unsigned` schema test for MySql <5.7 (#14663 )
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
egorrishe
87849c640f
Fix #18737 : Fix SchemaTest::testColumnSchema() for MySql <5.7
3 years ago
Bizley
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
3 years ago
DarkDef
4fba562cd0
New attemp
3 years ago
DarkDef
9367af4b15
Fix for issue #18604
3 years ago
Sartor
335385d7ba
Db pgsql getRawSql params replace fix
4 years ago
Dmytro Naumenko
10bb71a822
Fix #17203 : Fix `yii\db\Connection` to persist customized `queryBuilder` configuration after the `close()` → `open()` cycle
4 years ago
theonedemon
42e8aa4ea5
Fix #18325 : Fix `yii\db\pgsql\Schema` to respect non-default PgSQL schema name for data types
...
Co-authored-by: SilverFire - Dmitry Naumenko <d.naumenko.a@gmail.com>
4 years ago
DarkDef
64ecbf10b1
Fix for issue #18526
...
DbCache doesn't working using MSSQL/SqlServer
4 years ago
Bizley
54f25c4b04
Fix #17174 : Fix `yii\db\BaseActiveRecord::unlink()` to not ignore `on` conditions in `via` relations
4 years ago
Bizley
6dad27d4a1
Reversed #18499 ( #18546 )
4 years ago
Alexander Makarov
50831e6f08
Travis leftovers cleanup
4 years ago
Bizley
14f1138441
Correct #18499
4 years ago
Ondřej Vašíček
d1037db68d
Fix #18499 : When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()`
...
Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
4 years ago
Valerii Gorbachev
ad6daecdfe
Add test for issue #14663
4 years ago
Valerii Gorbachev
9883b78214
Fix #18448 : Fix issues in queries and tests for older MSSQL versions
4 years ago
Valerii Gorbachev
0571e806b9
Fix #18447 : Do not use `getLastInsertID` to get PK from insert query to lower collision probability for concurrent inserts
4 years ago
Bizley
ff0fd9a9ea
Fix #16492 : Fix eager loading Active Record relations when relation key is a subject to a type-casting behavior
4 years ago
Valerii Gorbachev
7c7c7148f6
Fix #18287 : Fix the OUTPUT got SQL syntax error if the column name is MSSQL keyword e.g key
4 years ago
Brandon Kelly
cafe8e315c
Fix #18406 : Fix PDO exception when committing or rolling back an autocommitted transaction in PHP 8
4 years ago
Wilmer Arambula
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.
4 years ago
Alexander Makarov
ed1c087784
Fix #18317 : Additional PHP 8 compatibility fixes
...
Co-authored-by: Bizley <pawel@positive.codes>
4 years ago
DarkDef
7a50da5cf8
Fix #18287 : Fix for OUTPUT INSERTED and computed columns. Added flag to computed values in table schema
4 years ago
Bizley
9790ea3a35
Add tests to ensure ActiveQuery is using DB connection set by model ( #18286 )
4 years ago
Wilmer Arambula
e5e80ac5ec
Fix testGetColumType for PostgreSQL ( #18279 )
4 years ago
Wilmer Arambula
5558ee793b
Fix #18040 , fix #15265 , fix #18232 database issues ( #18225 )
...
- Bug #18040 : Display width specification for integer data types was deprecated in MySQL 8.0.19
- Bug #15265 : PostgreSQL > 10.0 is not pass tests with default value of timestamp CURRENT_TIMESTAMP
- Bug #18232 : Fail tests pgsql v-10.14, v-11.9, v-12-latest
4 years ago
DarkDef
4b2af4d2a4
Bug #13973 : Correct alterColumn for MSSQL & drop constraints before drop column
...
Fixing #11158 and #13973
4 years ago
Maxim Hodyrev
09dc9b70f8
Fix #18066 : Fixed `yii\db\Query::create()` wasn't using all info from `withQuery()`
4 years ago
DarkDef
a624c31698
Fix #18198 : Fix saving tables with trigger by outputting inserted data from insert query with usage of temporary table
4 years ago
Alexander Makarov
54be5503c9
#18134 : Use better string name in a test
4 years ago
DarkDef
1faa45c552
Fix #18134 : Expression as columnName should not be quoted in likeCondition
4 years ago
Alexander Makarov
7ca23a2413
Revert "Fix #18134 : Instance of `ExpressionInterface` will not be quoted in `Connection:quoteColumnName`"
...
This reverts commit e342162425
.
4 years ago
DarkDef
e342162425
Fix #18134 : Instance of `ExpressionInterface` will not be quoted in `Connection:quoteColumnName`
4 years ago
Alexander Makarov
385fe13d66
Revert #18102 since renaming is technically problematic ( #18109 )
4 years ago
Brandon Kelly
eb956e9c6b
primary/replica in a definitely non-breaking way ( #18106 )
4 years ago
DarkDef
d317e41b21
Fix #18101 : Fix behavior of OUTPUT INSERTED.* for SQL Server query: "insert default values"; correct MSSQL unit tests; turn off profiling echo message in migration test
4 years ago
Brandon Kelly
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
4 years ago
Evgenii Goryaev
1b07c0d4fb
Fix #18001 : Fix getting table metadata for tables `(` in their name
4 years ago
Alex
37fc929285
Fix #18010 : Allow upper or lower case operators in `InCondition` and `LikeCondition`
4 years ago
Kwok
89ded8c82a
Fix #18000 : PK value of Oracle ActiveRecord is missing after save
4 years ago
Sartor
a66fac3bb1
Fix #17758 : `Query::withQuery()` can be used for CTE
5 years ago
Bizley
0643ef312d
Corrected tests
5 years ago
Alexander Makarov
438cc80fc7
Fix #17667 : Fix `CREATE INDEX` failure on sqlite when specifying schema
5 years ago
Alex
50b19dbfba
Fix #17920 : Fix for `Command::getRawSql` and `Expression` in params
5 years ago
Ivan Hermanov
b7d8730044
Fix #16092 : Fix duplicate joins in usage of `joinWith`
5 years ago