97a4d711ec
Merge branch 'master' into sync-master-2052.
2025-04-26 19:03:07 -04:00
ea4964dede
Fix enum test. Value used in assertion should match the actual enum name.
2024-12-10 12:40:50 +02:00
4b4eb9dab1
Rename enum cases to match suggested formatting (RFC)
2024-12-06 19:23:52 +02:00
132b06cf8d
Run tests MySQL > 8.0.16
.
2024-05-18 13:48:44 -04:00
4996fd3d91
Add draft loadTableChecks()
method, and add tests.
2024-05-18 13:35:03 -04:00
aec3b79e6d
Change @expectException
with $this->expectException
.
2024-03-20 18:49:27 -03:00
ce813e5060
Raise version min PHP 7.3
.
2024-03-20 17:27:20 -03:00
63ac4142cb
Apply fixeds rector.
2023-10-23 11:26:59 -03:00
9f41df5463
Merge branch '2.2' into update-2.2
2023-08-18 15:48:40 +04:00
61195154aa
Remove deprecated InvalidParamException::class
in branch 2.2
. ( #19896 )
2023-07-18 17:54:55 +03:00
96f61b75f8
Fix #19902 : Remove support for CUBRID
2023-07-18 17:00:54 +03:00
c9c100acd7
Remove deprecated method className()
for branch 2.2
. ( #19894 )
2023-07-16 21:45:39 +08:00
0a3394c6b7
Update dataProvider
phpunit-10 and clean more code. ( #19889 )
2023-07-11 10:35:44 +03:00
4352b8744b
Fix #19884 : Added support Enums in Query Builder
2023-07-10 18:07:10 +03:00
2e37b5c87d
Raised minimum PHP version to 8.1 ( #19879 )
2023-07-10 16:48:32 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
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>
2021-05-31 21:07:36 +03:00
395dc70468
Merge branch 'master' into fix/db-pgsql-raw-sql-params
2021-04-01 23:49:53 +03:00
335385d7ba
Db pgsql getRawSql params replace fix
2021-04-01 19:37:50 +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
385fe13d66
Revert #18102 since renaming is technically problematic ( #18109 )
2020-06-17 13:40:17 +03:00
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
2020-06-14 00:12:10 +03:00
50b19dbfba
Fix #17920 : Fix for Command::getRawSql
and Expression
in params
2020-03-20 19:15:16 +03:00
09eacd8dc1
Bug #17597 : PostgreSQL 12 and partitioned tables support (batyrmastyr)
...
* yiisoft#17597, pg_constraint.consrc removed in Postgres 12
* yiisoft#17597, load schema for partitioned tables (introduced in Postgres 10)
* messed up with issue number
* #yiisoft#17597 Postgres 12 support, support GENERATED AS IDENTITY columns
* uncleared FileCache leads to falsy failures on subsequent test runs
* moved .sql for postgres 10 and 12 to separate files, added ResetSequence test for GENERATED AS IDENTITY column
2019-10-18 14:57:24 +03:00
d98f4e69b5
Fix MSSQL tests ( #17426 )
2019-07-11 19:39:46 +03:00
56f639358c
Add MSSQL tests ( #17410 )
2019-07-04 15:51:01 +03:00
bc9f8bd8a3
Fixes CommandTest::testCreateView() cleanup logic ( #17006 )
...
View must be deleted before deleting the tables on which it depends, otherwise we will get errors when rerunning the tests in the same environment.
For example:
```
1) yiiunit\framework\db\mysql\CommandTest::testCreateView
yii\db\Exception: SQLSTATE[HY000]: General error: 1356 View 'yii2_test.testCreateView' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
The SQL being executed was: SHOW FULL COLUMNS FROM `testCreateView`
```
2019-01-03 14:15:06 -05:00
379a2002dd
Issue #14609 : test case for further discussion ( #16990 )
2018-12-31 07:04:08 -05:00
78aaca7a87
Fixed CommandTest::testBindValuesSupportsDeprecatedPDOCastingFormat()
2018-03-05 15:49:01 +02:00
233eeb52d7
fixed unit tests
2018-03-03 18:12:51 +02:00
9a949525a1
Fixed deprecated type casting format in Command::bindValues()
...
Fixed #15817
2018-03-03 17:50:18 +02:00
e806a3b50a
Added yii\db\ExpressionInterface
support to yii\db\Command::batchInsert()
...
Fixes #15661
2018-02-18 20:23:08 +02:00
de1750228d
Fixes #13879 : Added upsert support for yii\db\QueryBuilder
and yii\db\Command
2018-02-09 01:05:50 +03:00
ecf3ef8bf9
Use root NS specification for opcoded functions
2018-02-08 00:00:36 +03:00
c7e55450dd
Reverted #14593
...
(reverted from commit a42bbd8f01de340d9f4964aad8c9d3297b4eabcd)
2018-02-05 14:12:20 +03:00
a42bbd8f01
Fixes #14593 : Added yii\db\Command::EVENT_AFTER_EXECUTE
event that is triggered after command is executed
2018-02-05 15:49:18 +07:00
67f67e3a69
SCA with Php Inspections (EA Extended) ( #15571 )
2018-01-29 17:08:57 +07:00
8d50844024
#15426 : Added ability to create and drop database views
2018-01-19 11:21:07 +03:00
18281c2156
Added test and adjusted changelog for #15112
2018-01-18 01:34:08 +03:00
cc2e28bd0e
Add transaction/retry support for yii\db\Command
2017-12-26 13:10:36 +03:00
2992b9b09d
Refactored tests with PHPUnit assert methods ( #15260 )
2017-11-30 22:10:31 +03:00
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +03:00
7e7faeebd1
Fixed excess escaping in Command::batchInsert() ( #13236 )
2017-10-23 22:43:39 +03: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
0c0942d6e2
Enable phpdoc_add_missing_param_annotation
rule in php-cs-fixer config. ( #14681 ) [skip ci]
2017-08-21 01:57:23 +03:00
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
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
2017-08-14 12:33:11 +02:00
7cac7f131d
Set back original locale in #14448 test
2017-08-14 02:34:23 +03:00
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
2017-08-13 22:15:04 +02:00
12eb936083
Enable heredoc_to_nowdoc
rule in php-cs-fixer ( #14419 )
2017-07-10 13:18:52 +03:00