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.
2018-03-27 19:22:56 +03:00
0af1c05d6a
yii\db\ActiveRecord::findOne()
now accepts column names prefixed with table name
...
fixes #15931
2018-03-21 17:44:22 +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
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
52c80f782d
moved SQL specific test to SQL AR
2018-03-12 11:21:05 +01: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
0ca003343b
Fixed test
2018-03-10 10:09:17 +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
f435284952
Fixed typo
2018-03-09 08:15:51 +02:00
aed911b5f1
Fixed nesting of JsonExpression, ArrayExpression
2018-03-08 12:45:01 +02:00
45bccb11c1
Added test to verify #15838
2018-03-05 16:27:03 +02:00
78aaca7a87
Fixed CommandTest::testBindValuesSupportsDeprecatedPDOCastingFormat()
2018-03-05 15:49:01 +02: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
66081c6187
Added a unit test to verify #15827
...
Closes #15827
2018-03-03 22:31:42 +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
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
ac687aab29
Fixed yii\db\Command::upsert() for Cubrid/MSSQL/Oracle
2018-02-24 19:59:12 +03:00
64255b3d0a
Merge branch 'master' into query-select-bug
2018-02-23 23:33:07 +02:00
dc452b7e24
Fixed multiple JSON-related issues ( #15732 )
2018-02-23 23:07:04 +02:00
6c8b87f3e2
Implemented \Traversable in ArrayExpression ( #15733 )
...
* Implemented \Traversable in ArrayExpression
* Fix punctuation [skip ci]
2018-02-23 22:50:06 +02:00
55f1f34e44
Added test to verifiy #15731
2018-02-21 23:53:19 +02:00
23b41220ce
Fixed ActiveRecordTest::testCustomARRelation() to work on PHP <5.5
2018-02-21 22:22:06 +02:00
c297986066
Fixed Query::select()
...
fixes #15728
2018-02-21 18:11:27 +02:00
4409c19d58
Merge pull request #15702 from developeruz/15696-magic-getter-for-AR
...
Fix magic getter for ActiveRecord (#15696 )
2018-02-21 08:22:32 +02:00
2eba4b54f8
Added tests to verify issue #15684
2018-02-20 23:03:58 +02:00
ef9600234e
Fix magic getter for ActiveRecord ( #15696 )
2018-02-20 20:10:44 +05:00
1b3526d8db
Fixed yii\db\Query::select()
to override existing selects
...
Fixes #15676 , fixes #15674
2018-02-19 17:53:28 +02:00
59fed9a428
Fixed error in tests
2018-02-18 20:44:34 +02:00
e806a3b50a
Added yii\db\ExpressionInterface
support to yii\db\Command::batchInsert()
...
Fixes #15661
2018-02-18 20:23:08 +02:00
0177d68476
Commit da06c4a1 reduced num of useless brackets in SQL. Fixing tests
2018-02-17 00:15:12 +02:00
da06c4a1e1
Fixed QueryBuilder::buildCondition() to skip empty array on input
...
Fixes #15653
2018-02-16 23:46:08 +02:00
7bd694dccb
Enhanced tests
2018-02-16 00:06:59 +02:00
c3c9d1fd97
Merge branch 'master' into SamMousa-indexby-after-relations-9342
...
Conflicts:
framework/db/Query.php
2018-02-15 23:38:06 +02:00
63ffae028e
Fixes #14254 : add an option to specify whether validator is forced to always use master DB for yii\validators\UniqueValidator
and yii\validators\ExistValidator
2018-02-15 02:12:54 +03:00
ad0c19de3a
Merge pull request #15643 from SilverFire/make-query-expression
...
Implement ExpressionInterface in Query
2018-02-12 17:54:46 +02:00
44ab0414b6
fixing tests
2018-02-12 16:56:46 +02:00
898fbfc6f8
fixed tests
2018-02-12 16:03:08 +02:00
df91a9608f
Fixes #14638 : Added yii\db\SchemaBuilderTrait::tinyInteger()
2018-02-12 12:01:21 +03:00
74dc1cdc30
Fixes #13618 : Active record now resets related models after corresponding attributes updates
...
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
2018-02-12 02:26:49 +03:00
5e8fd58ddb
15630 fixed like escaping ( #15642 )
...
* Tests for like escaping.
* Fix for like condition escaping
* Fixed PHPDocs
* Simplify tests
2018-02-11 22:59:24 +03:00
23dbbb9fd7
Merge branch 'master' into make-query-expression
2018-02-11 20:05:32 +02:00
1bbd2e1993
Add ExpressionInterface to Query class
2018-02-11 20:02:27 +02:00