Manu311
cc5bb71f75
Fix #17449 : Ensure `CHECK` statement goes after `COMMENT` in MySQL `QueryBuilder::addCommentOnColumn()`
5 years ago
Alexander Kartavenko
cdd40b8dfb
Fix #17504 : Fix upsert when `$updateColumns = true` but there are no columns to update in the table
5 years ago
Alexander Kartavenko
69cf9de56b
Fix #17473 : Fixed `SimpleConditionBuilder::build()` when column is not a string
5 years ago
Alexander Kartavenko
4b768a86f5
Fix #17486 : Fixed error when using `batch()` without `$db` parameter with MSSQL
5 years ago
Sidney Lins
9988efc04f
Fix #16796 : Fixed addition and removal of table and column comments in MSSQL
5 years ago
Alexander Kartavenko
6fc04a622e
Fix #17219 : Fixed quoting of table names with spaces in MSSQL
5 years ago
Alexander Kartavenko
259c496e2e
Fix #10020 : Fixed quoting of column names with dots in MSSQL
5 years ago
Alexander Kartavenko
a9097dbac3
Fix #17435 : Fixed `i18n_init` migration for MSSQL
5 years ago
Alexander Kartavenko
25cf331839
Closes #10023 . Fix MSSQL "There are no more rows" exception when using `each()` and `batch()`
5 years ago
Alexander Kartavenko
136705c92b
MSSQL: fix tests ( #17431 )
5 years ago
Alexander Kartavenko
d98f4e69b5
Fix MSSQL tests ( #17426 )
5 years ago
Alexander Kartavenko
869f475dc1
Fix #17413 , fix #17418 : Fixed MSSQL tests
5 years ago
Alexander Kartavenko
9f2a87363e
Fixes #17420 : Fixed loading of column default values for MSSQL
5 years ago
Alexander Kartavenko
55b06d2364
Fix #17413 : Fixed MSSQL tests: `QueryBuilderTest::testGetColumnType()`, `QueryBuilderTest::testResetSequence()`
5 years ago
Alexander Kartavenko
56f639358c
Add MSSQL tests ( #17410 )
5 years ago
Alexander Kartavenko
eb65dba796
Fixes #17057 : Fixed issues with table names that contain special characters or keywords in MSSQL
5 years ago
Brandon Kelly
f2212a3183
Fix #17384 : Fixed SQL error when passing `DISTINCT ON` queries
5 years ago
Sidney Lins
fe3ebe2e56
Fixes #17356 : MSSQL Schema was not detecting string field size
5 years ago
Brandon Kelly
54b3d6d8ab
Fixes #17344 : Improved performance of `yii\db\Connection::addSelect()`
5 years ago
Bizley
56215d58e1
Fixes #12077 , #12135 , #17263 : Fixed PostgreSQL version of `alterColumn()` to accept properly `ColumnSchemaBuilder` definition of column
5 years ago
Albert Borsos
d2c2f63686
Fixes #17127 : `yii\db\ActiveRecord::findOne()` now accepts table aliases
6 years ago
Dmytro Naumenko
adf8f9a32f
Fixes #15931 : `yii\db\ActiveRecord::findOne()` now accepts quoted table and column names using curly and square braces respectively
6 years ago
SilverFire - Dmitry Naumenko
b9ee17014e
Removed wrong test addded in dfcf037c7
6 years ago
SilverFire - Dmitry Naumenko
dfcf037c76
ActiveQuery::viaTable() now throws exception on wrongly prepared query
...
Closes #15876
6 years ago
Pavel Ivanov
4333b90186
Fixes #15482 : AR::find()->with() missing data when using string identifiers for relations
6 years ago
Pavel Ivanov
7ccadb4a79
Fixes #15167 : Fixed loading of default value `current_timestamp()` for MariaDB >= 10.2.3
6 years ago
Pavel Ivanov
b4cb42fb9d
Fix of Oracle tests for proper skipping ( #17019 )
...
PHPUnit must get the data that will be passed to the tests, before executing them. That's why you can't prevent the dataProvider to be executed using `$this->markTestSkipped()` inside a test. Instead, you must use a skipping inside data provider when the test cannot be executed.
Now Oracle tests are skipped without fails when Oracle isn't installed:
```
$ vendor/bin/phpunit --filter=BuildLikeCondition --group=oci --verbose
...
There was 1 skipped test:
1) yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition
Test for yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition skipped by data provider
Could not execute Connection::quoteValue() method: Connection::dsn cannot be empty.
```
6 years ago
Pavel Ivanov
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`
```
6 years ago
Pavel Ivanov
379a2002dd
Issue #14609 : test case for further discussion ( #16990 )
6 years ago
Pavel Ivanov
b128ec85f4
Fixes #16081 : Fixed composite IN using just one column
6 years ago
Alex
b4adada51e
Fixes #16022 : Fix UniqueValidator for PostgreSQL. Checks the uniqueness of keys in `jsonb` field
6 years ago
Bizley
3907895324
Fixes #16897 : Fixed `yii\db\sqlite\Schema` missing primary key constraint detection in case of `INTEGER PRIMARY KEY`
6 years ago
cuileon
489dd119a5
merge from yiisoft/yii2
6 years ago
Bizley
b8c2c7fb5e
Fixes #16424 : `yii\db\Transaction::begin()` throws now `NotSupportedException` for nested transaction and DBMS not supporting savepoints
6 years ago
Konstantin Voloshchuk
9f383ab228
Fixes #14367 : In `yii\db\mysql\QueryBuilder` added support fractional seconds for time types for MySQL >= 5.6.4
6 years ago
Andrey Akimov
87af257892
Fixes #5341 : HasMany via two relations
6 years ago
CedricYii
3555633223
Fixes #14289 : Added `yii\db\Command::executeResetSequence()` to work with Oracle
6 years ago
Sergey
292a545642
Fixes #16104 : Fixed `yii\db\pgsql\QueryBuilder::dropIndex()` to prepend index name with schema name
6 years ago
Sam
84cb255aab
Fixes #16245 : Fixed `__isset()` in `BaseActiveRecord` not catching errors
6 years ago
Andrey Akimov
2a3428c9e9
Fixes #15875 : afterSave for new models flushes unsaved data
7 years ago
Bob Olde Hampsink
ab092f2e21
Fixes #15117 : Fixed `yii\db\Schema::getTableMetadata` cache refreshing
7 years ago
Pavel Ivanov
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.
7 years ago
Carsten Brandt
0af1c05d6a
`yii\db\ActiveRecord::findOne()` now accepts column names prefixed with table name
...
fixes #15931
7 years ago
SilverFire - Dmitry Naumenko
b37f361ad7
Fixed possible SQL injection through `ActiveRecord::findOne()`
7 years ago
Marco Moreno
f33959419a
Fixes #15878 : Fixed migration with a comment containing an apostrophe
7 years ago
Marco Moreno
c31f9ac811
Fixes #15878 : Fixed migration with a comment containing an apostrophe
7 years ago
Carsten Brandt
52c80f782d
moved SQL specific test to SQL AR
7 years ago
SilverFire - Dmitry Naumenko
79583a2c7e
Reverted casting JsonExpression(null) to SQL NULL
7 years ago
SilverFire - Dmitry Naumenko
c6ea3fb455
Revert "Fixed JsonExpressionBuilder to generate SQL NULL"
...
This reverts commit cf4bd39fc1
.
7 years ago
SilverFire - Dmitry Naumenko
0ca003343b
Fixed test
7 years ago