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
SilverFire - Dmitry Naumenko
cf4bd39fc1
Fixed JsonExpressionBuilder to generate SQL NULL
...
Fixes #15863
7 years ago
SilverFire - Dmitry Naumenko
cc29ef8968
Fixed JsonExpressionBuilder to cast JSON explicitly
...
Fixes #15839 ;
7 years ago
Dmitry Naumenko
f435284952
Fixed typo
7 years ago
SilverFire - Dmitry Naumenko
aed911b5f1
Fixed nesting of JsonExpression, ArrayExpression
7 years ago
SilverFire - Dmitry Naumenko
45bccb11c1
Added test to verify #15838
7 years ago
SilverFire - Dmitry Naumenko
78aaca7a87
Fixed CommandTest::testBindValuesSupportsDeprecatedPDOCastingFormat()
7 years ago
SilverFire - Dmitry Naumenko
4e35eb6539
Fixed JSONB support in PostgreSQL 9.4
...
Closes #15829
7 years ago
SilverFire - Dmitry Naumenko
f7da602250
PgSQL: Fix table schema load for table name in quotes
...
This commit fixes the table schema loading for PostgreSQL, when
the table name is specified in quotes, e.g. `"type"`.
7 years ago
SilverFire - Dmitry Naumenko
66081c6187
Added a unit test to verify #15827
...
Closes #15827
7 years ago
SilverFire - Dmitry Naumenko
8bb31fb9e5
Updated docs, added tests
7 years ago
SilverFire - Dmitry Naumenko
5fa25b331d
Fixed encoding of empty ArrayExpression for PostgreSQL
7 years ago
SilverFire - Dmitry Naumenko
d5d4b8b0f5
Fixed `null` values handling for PostgresSQL arrays
...
Fixes #15804
7 years ago
SilverFire - Dmitry Naumenko
233eeb52d7
fixed unit tests
7 years ago
SilverFire - Dmitry Naumenko
9a949525a1
Fixed deprecated type casting format in Command::bindValues()
...
Fixed #15817
7 years ago
Sergey Makinen
ac687aab29
Fixed yii\db\Command::upsert() for Cubrid/MSSQL/Oracle
7 years ago
Dmitry Naumenko
dc452b7e24
Fixed multiple JSON-related issues ( #15732 )
7 years ago
Dmitry Naumenko
6c8b87f3e2
Implemented \Traversable in ArrayExpression ( #15733 )
...
* Implemented \Traversable in ArrayExpression
* Fix punctuation [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
55f1f34e44
Added test to verifiy #15731
7 years ago
SilverFire - Dmitry Naumenko
23b41220ce
Fixed ActiveRecordTest::testCustomARRelation() to work on PHP <5.5
7 years ago
SilverFire - Dmitry Naumenko
c297986066
Fixed Query::select()
...
fixes #15728
7 years ago
SilverFire - Dmitry Naumenko
2eba4b54f8
Added tests to verify issue #15684
7 years ago
Elvira Sheina
ef9600234e
Fix magic getter for ActiveRecord ( #15696 )
7 years ago
SilverFire - Dmitry Naumenko
1b3526d8db
Fixed `yii\db\Query::select()` to override existing selects
...
Fixes #15676 , fixes #15674
7 years ago
SilverFire - Dmitry Naumenko
59fed9a428
Fixed error in tests
7 years ago
SilverFire - Dmitry Naumenko
e806a3b50a
Added `yii\db\ExpressionInterface` support to `yii\db\Command::batchInsert()`
...
Fixes #15661
7 years ago
SilverFire - Dmitry Naumenko
0177d68476
Commit da06c4a1
reduced num of useless brackets in SQL. Fixing tests
7 years ago