1265 Commits

Author SHA1 Message Date
a036fac490 Extract cache from yii\db\Command to yii\db\CacheableQueryTrait and use it in yii\db\Query 2018-02-10 12:30:58 +02:00
ad128f1d86 Fixes #7640: oci/QueryBuilder wrong namespace
Fix commit d165863
2018-02-09 10:04:11 +01:00
de1750228d Fixes #13879: Added upsert support for yii\db\QueryBuilder and yii\db\Command 2018-02-09 01:05:50 +03:00
40b038379f Fixes #13019: Support JSON in SchemaBuilderTrait 2018-02-06 16:35:49 +03:00
786a733502 Moved ExpressionBuilder creation logic out of QueryBuilder::buildExpression() to a separate method 2018-02-05 17:18:32 +02:00
b139e865b7 Fixed PHPDocs. Resolves discussion d16586334d (commitcomment-27343531) 2018-02-05 16:40:50 +02: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
d16586334d Fixes #7640: Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL 2018-02-05 04:59:14 +07:00
5afe0a0d36 Fixes #15047: yii\db\Query::select() and yii\db\Query::addSelect() now check for duplicate column names 2018-02-04 23:41:33 +03:00
b979b2aa88 Fixes #15355: Additional test and fix 2018-02-03 20:10:13 +03:00
5483a2ef6c Fixes #15076: Perfect yii\db\QueryBuilder buildColumns function 2018-02-03 18:19:07 +07:00
1a1fb49426 Fixes #15522: Fixed yii\db\ActiveRecord::refresh() method does not use an alias in the condition 2018-02-01 16:13:19 +07:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
b9cbc56330 Fixed yii\db\ActiveRecord::with() unable to use relation defined via attached behavior in case asArray is enabled 2018-01-23 12:46:56 +02:00
a2a79a70eb Fixes #13814: MySQL unique index names can now contain spaces 2018-01-22 00:27:58 +03:00
8d50844024 #15426: Added ability to create and drop database views 2018-01-19 11:21:07 +03:00
d32b80eec9 Fixes #15122: Fixed yii\db\Command::getRawSql() to properly replace expressions 2018-01-18 01:34:07 +03:00
00afe6a4b8 Fix: Query::each() without indexBy() zero based keys 2018-01-16 17:13:19 +02:00
f8990ac97a Fixes #15353: Remove side effect of ActiveQuery::getTablesUsedInFrom() introduced in 2.0.13 2018-01-15 13:02:28 +03:00
c501e3fde8 Revert "Fixed QueryBuilder docs (#15427) [skip ci]" (#15431)
This reverts commit 7d1310ace7ee9c2f0930cc5b4005298818248cb3.
2017-12-29 17:21:37 +03:00
7d1310ace7 Fixed QueryBuilder docs (#15427) [skip ci]
documentation is wrong ... smallint() doesn't work, but smallinteger() does
2017-12-29 11:36:40 +03:00
a3a3d1dcef Document callable params [skip ci] 2017-12-26 14:03:15 +03:00
f199b2bfff Merge branch 'master' of https://github.com/yiisoft/yii2 into command-txn-retry 2017-12-26 13:20:25 +03:00
cc2e28bd0e Add transaction/retry support for yii\db\Command 2017-12-26 13:10:36 +03:00
8f2cd050af Fixed Query not to dig inside Expression 2017-12-21 16:16:33 +02:00
7e8a4c8629 Minor adjustments 2017-12-21 02:50:50 +03:00
ba931fa21d Fixes #15356: Fixed multiple bugs in yii\db\Query::getTablesUsedInFrom() 2017-12-21 01:35:08 +03:00
6c731d46d0 #15356: Initial version of yii\db\Query::getTablesUsedInFrom() fix and tests 2017-12-21 01:33:58 +03:00
605478c043 Fixes #14157: Add support for loading default value CURRENT_TIMESTAMP of MySQL datetime field 2017-12-20 01:45:01 +03:00
315855f7f5 Fixes #15357: Added multi statement support for yii\db\sqlite\Command 2017-12-20 00:02:14 +03:00
04891af00a Removed confusing comment about event triggering from BaseActiveRecord::init() (#14303) [skip ci] 2017-12-19 21:50:44 +03:00
dc019856b7 Fixes #15355: Fixed yii\db\Query::from() does not work with yii\db\Expression 2017-12-19 21:42:54 +03:00
9944d7a49f Fixed wrong description for param $table in addCommentOnTable() (#15387) [skip ci] 2017-12-19 13:59:43 +03:00
185209957e Fixes #15270: Resolved potential race conditions when writing generated php-files 2017-12-02 18:24:56 +03:00
b7d5393a08 Fixes #15194: Fixed yii\db\QueryBuilder::insert() to preserve passed params when building a INSERT INTO ... SELECT query for MSSQL, PostgreSQL and SQLite 2017-11-24 15:19:34 +07:00
7904bc2629 added note to QueryInterface::where() 2017-11-14 11:27:17 +01:00
85b65c889a Fixes #15117: Fixed DB schema cache did not honor table prefixes 2017-11-11 23:42:41 +03:00
4e176ca325 Fixes #15108: Fixed yii\db\Schema::getSchemaNames() for MSSQL and added tests for all DBMSes 2017-11-07 19:20:14 +03:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
93bbf5b39d Fixes #15015: Added StringHelper::floatToString() to savely cast float values independent of the locale, also fixes some places in the framework that use it now 2017-10-27 11:41:45 +03:00
6330a2b779 Small phpdoc fix in \yii\db\QueryTrait::emulateExecution() [skip ci] (#15021) 2017-10-25 16:55:51 +03:00
7e7faeebd1 Fixed excess escaping in Command::batchInsert() (#13236) 2017-10-23 22:43:39 +03:00
980cfde0f1 Fixes #14877: Disabled profiling on connection opening when profiling is disabled 2017-10-20 01:28:05 +03:00
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
afd59a18ec Merge branch 'master' into indexby-after-relations-9342 2017-10-08 00:52:14 +02:00
1e0157f0ac Fixes #7316: Documentation for ActiveRelationTrait::inverseOf() [skip ci] (#14892) 2017-10-07 18:59:53 +02:00
1f24fd35b9 Fixes #14910: adjusted safeUp()/safeDown() docs [skip ci] 2017-10-04 15:47:03 +01:00
6eae7fba59 Fixed typo: an => a in batchInsert [skip ci] 2017-10-02 21:15:31 +02:00