1254 Commits

Author SHA1 Message Date
32c7c4161b Fixes #16192: yii\db\Command::logQuery() is now protected, extracted getCacheKey() from queryInternal() 2018-07-28 00:39:16 +08:00
84c55b468a [minor] SCA (#16464)
* Php Inspections (EA Ultimate): new findings

* Php Inspections (EA Ultimate): dealing with older PHP versions compatibility
2018-07-01 01:04:48 +03:00
3555633223 Fixes #14289: Added yii\db\Command::executeResetSequence() to work with Oracle 2018-06-27 22:29:50 +03:00
6590feef0d Fixes #16192: yii\db\Command::logQuery() is now protected 2018-06-03 16:30:53 +03:00
292a545642 Fixes #16104: Fixed yii\db\pgsql\QueryBuilder::dropIndex() to prepend index name with schema name 2018-05-31 17:37:14 +03:00
22f570cefd Merge pull request #16277 from noname007/patch-1
fix bug: when use ActiveQuery subquery
2018-05-14 13:26:26 +03:00
282152e984 Update Connection.php
fix event phpdoc types
2018-05-14 12:13:26 +02:00
e47ac0c4a4 fix bug: when use a subquery 2018-05-14 18:04:53 +08:00
6dd2aec011 [minor]: SCA (#16269)
* Php Inspections (EA Ultimate): minor code tweaks

* Php Inspections (EA Ultimate): code style

* Php Inspections (EA Ultimate): code style

* Php Inspections (EA Ultimate): code style
2018-05-14 12:00:01 +03:00
1945dc69c7 Fixes #9133: Added yii\behaviors\OptimisticLockBehavior 2018-05-12 14:43:13 +03:00
cc2cac58d2 Fixed bad instnaceof check in yii\db\Schema::getTableMetadata() 2018-05-12 14:18:13 +03:00
Sam
84cb255aab Fixes #16245: Fixed __isset() in BaseActiveRecord not catching errors 2018-05-11 11:04:00 +03:00
cb15a413a7 Fix ODBC Driver 13 for SQL Server error on null (#16039) 2018-04-29 11:05:11 +03:00
56a3d21c24 Minor refactoring of BaseActiveRecord::populateRelation() (#16161) 2018-04-26 19:09:26 +03:00
2a3428c9e9 Fixes #15875: afterSave for new models flushes unsaved data 2018-04-24 19:40:21 +03:00
abeb3b1a37 Fixes #16073: Fixed regression in Oracle IN condition builder for more than 1000 items 2018-04-13 14:53:06 +03:00
ab092f2e21 Fixes #15117: Fixed yii\db\Schema::getTableMetadata cache refreshing 2018-04-06 16:49:17 +03:00
b195d9e780 optimize table name 2018-03-21 18:07:30 +01:00
0af1c05d6a yii\db\ActiveRecord::findOne() now accepts column names prefixed with table name
fixes #15931
2018-03-21 17:44:22 +01:00
a33b09dab3 remove ColumnSchema import from mysql Schema because it conflicts with existing class 2018-03-20 13:40:28 +01:00
a38302fdfd improved filtering condition on yii\db\ActiveRecord 2018-03-20 11:42:28 +01:00
5f75916cde Wording adjustments and doc enhancements [skip ci] 2018-03-20 11:20:56 +01:00
b37f361ad7 Fixed possible SQL injection through ActiveRecord::findOne() 2018-03-20 11:20:56 +01:00
f33959419a Fixes #15878: Fixed migration with a comment containing an apostrophe 2018-03-20 11:19:10 +01:00
4bfe5e7a49 release version 2.0.14.2 2018-03-13 16:15:01 +02:00
4ad04be2ea Fixed null saving for JSON and Array cols in AR
Fixes #15863
2018-03-13 16:03:46 +02:00
7a38c795b4 Merge pull request #15868 from SilverFire/mysql-json-cast-15839
Fixed JsonExpressionBuilder to cast JSON explicitly
2018-03-13 12:30:09 +02:00
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
5e16c67673 Merge pull request #15797 from kalessil/master
[minor] Static code analysis
2018-03-10 15:42:48 +02:00
79583a2c7e Reverted casting JsonExpression(null) to SQL NULL 2018-03-10 11:14:08 +02:00
c6ea3fb455 Revert "Fixed JsonExpressionBuilder to generate SQL NULL"
This reverts commit cf4bd39fc1927c3cbe85c08c6fc473d60921d96f.
2018-03-10 11:11:11 +02:00
cf4bd39fc1 Fixed JsonExpressionBuilder to generate SQL NULL
Fixes #15863
2018-03-10 10:04:41 +02:00
cc29ef8968 Fixed JsonExpressionBuilder to cast JSON explicitly
Fixes #15839;
2018-03-10 09:56:28 +02:00
aed911b5f1 Fixed nesting of JsonExpression, ArrayExpression 2018-03-08 12:45:01 +02:00
a98552ef64 Fix PostgreSQL aray field typecast when $disableArraySupport is true 2018-03-08 00:58:13 -03:00
92213864d9 Fixes #15776: Fixed slow MySQL constraints retrieving 2018-03-08 00:45:22 +03:00
4391ca7f7b Connection::getTransaction() adjust phpdoc to also return null (#15848) [skip ci] 2018-03-07 23:45:50 +03:00
4e35eb6539 Fixed JSONB support in PostgreSQL 9.4
Closes #15829
2018-03-04 20:25:36 +02:00
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"`.
2018-03-04 20:19:45 +02:00
b642c36019 Merge branch 'antonmarin-patch-1' 2018-03-03 21:17:42 +02:00
8bb31fb9e5 Updated docs, added tests 2018-03-03 21:17:31 +02:00
5fa25b331d Fixed encoding of empty ArrayExpression for PostgreSQL 2018-03-03 20:43:58 +02:00
d5d4b8b0f5 Fixed null values handling for PostgresSQL arrays
Fixes #15804
2018-03-03 18:54:33 +02:00
9a949525a1 Fixed deprecated type casting format in Command::bindValues()
Fixed #15817
2018-03-03 17:50:18 +02:00
bd38e384f6 Fix for yii\db\Connection events documentation [skip ci]
Fixes #15799
2018-02-28 00:16:29 +03:00
f10cb6aeee SCA with Php Inspections (EA Ultimate) 2018-02-27 19:13:22 +01:00
7c4474132e Fixed PHPDoc [skip ci] 2018-02-27 14:39:53 +02:00
a78ba75b7b Merge pull request #15789 from Spell6inder/patch-1
fix complex example
2018-02-27 14:38:39 +02:00
7a44ede105 Added missing QueryBuilder::conditionClasses setter
Fixes #15792
2018-02-27 14:36:55 +02:00
ef757db054 fix complex example
fix complex example
2018-02-27 11:34:24 +02:00