Commit Graph

158 Commits

Author SHA1 Message Date
Qiang Xue
9862ee35b2 Fixes #1115: fixed the issue with PDO boolean value binding with pgsql 2013-11-03 18:51:16 -05:00
Qiang Xue
1551f8443c Fixed pgsql column type detection bug. 2013-11-03 09:33:28 -05:00
Qiang Xue
26c7f6d62f Fixed sqlite column type detection bug. 2013-11-03 09:02:17 -05:00
Carsten Brandt
d8b94d647b made AR attribute manipulation behave consistent to hasAttribute() 2013-11-03 01:45:20 +01:00
Qiang Xue
be6826871e Merge pull request #1124 from cebe/query-builder-public
made querybuilder condition methods public
2013-11-02 15:13:09 -07:00
Carsten Brandt
415144489e made querybuilder condition methods public 2013-11-02 21:36:48 +01:00
Alexander Mohorev
5860599ef7 PhpDoc comment 2013-11-02 17:03:37 +03:00
Alexander Mohorev
18fbd7510a Missing return statement 2013-11-02 16:12:28 +03:00
Иван Багаев
64641cbd76 Add batchInsert method to yii\db\Migration 2013-11-02 10:42:14 +05:00
Qiang Xue
bd82170142 Fixes #1096: pgsql: sequence name not matched 2013-11-01 10:03:13 -04:00
Alexander Mohorev
51211898f8 Control statements based on the if and elseif constructs must have a single space before the opening parenthesis of the conditional and a single space after the closing parenthesis. 2013-10-28 23:51:48 +03:00
Panagiotis Moustafellos
80e816efc3 pgsql: added 'bool' type (alias of 'boolean')
Relates #1086 and #1087
2013-10-28 14:39:09 +02:00
Qiang Xue
6c6dd01122 Fixes #1052: unset related data when ActiveRecord::refresh() is called. 2013-10-23 21:39:36 -04:00
Qiang Xue
fb8e818204 Dropped support for supporting default namespace for classes of related models. 2013-10-21 23:55:20 -04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Alexander Makarov
e115b0c860 Updated docs, composer.json and other things to mention and use PHP 5.4 2013-10-18 13:01:13 +04:00
resurtm
b3b5e36d42 Remove use ($this). Related to 9e1b498fb5. 2013-10-18 09:46:52 +06:00
resurtm
9e1b498fb5 PHP 5.4 supports $this with closures. 2013-10-18 09:31:37 +06:00
Alexander Makarov
645ec3645c Merge pull request #1006 from chelishchev/basic-support-pgsql-in-query-builder
Support PostgreSQL in QueryBuilder
2013-10-17 13:00:54 -07:00
chelishchev
8f8c705309 Just simple support PostgreSQL in QueryBuilder 2013-10-17 22:54:09 +03:00
Carsten Brandt
28d9ee7c31 adjusted cubrid version in schema quote 2013-10-15 05:47:55 +02:00
Carsten Brandt
598d01287b added cubrid specific pdo type casting
cubrid pdo does not support PARAM_BOOL so we cast the value to integer
and store 0 and 1 instead

fixes #964
2013-10-15 03:37:46 +02:00
Qiang Xue
8899aaeb5b moved getPdoType() to Schema. 2013-10-14 08:28:56 -04:00
Carsten Brandt
ee89134ffe make db\Command::getPdoType() protected
fixes #964
2013-10-11 14:51:07 +02:00
Alexander Makarov
817516adc5 Added missing return 2013-10-10 14:14:30 +04:00
Alexander Makarov
6488fe47ec Better phpdoc for chained method calls 2013-10-10 13:34:16 +04:00
Qiang Xue
aede3c9f47 Removed duplicated indexBy declaration. 2013-10-09 08:14:57 -04:00
Qiang Xue
43d392d8d2 porting the fix from https://github.com/yiisoft/yii/pull/2894 2013-09-23 07:18:42 -04:00
Qiang Xue
c2a3aa3d99 Fixes #885: removed NULLs from filtering by models. 2013-09-18 16:18:47 -04:00
Carsten Brandt
ef13a11f66 moved getPDOType() back to Command to avoid dependency on Schema
fixes #854
2013-09-18 16:29:16 +02:00
Carsten Brandt
0e261fba5a moved redis out of yii\db namespace 2013-09-18 16:03:06 +02:00
Carsten Brandt
43d15155c6 cleanup db use statements 2013-09-17 10:01:01 +02:00
Alexander Makarov
4a9efc9e75 Corrected schema used for MySQL 2013-09-15 15:18:38 +04:00
Alexander Makarov
523a63f576 Added TYPE_BIGPK to Schema 2013-09-15 15:08:43 +04:00
Qiang Xue
a2b4ef0f82 Fixes #876. 2013-09-14 08:35:37 -04:00
Qiang Xue
6c6cb3cd90 Fixes #853: Added composite FK support for SQLite. 2013-09-13 20:41:40 -04:00
Qiang Xue
02fd82c42a Fixed build break. 2013-09-13 20:19:50 -04:00
Qiang Xue
6fe152da7e Reverted 0bf2dad: it's very common to use lower case for column types and upper case for other DB keywords. 2013-09-13 20:13:46 -04:00
Carsten Brandt
6015312548 code style 2013-09-13 17:55:01 +02:00
Carsten Brandt
0bf2daddd5 changed querybuilder typemap to lower case 2013-09-13 17:49:29 +02:00
Carsten Brandt
3e5491e089 changed cubrid table and column name quoting
` is a MySQL thing supported by cubrid. " is more common.
2013-09-13 17:45:55 +02:00
Qiang Xue
c6f4dac249 Refactored AR code. 2013-09-11 13:41:47 -04:00
Qiang Xue
7303bae382 Fixed foreign key generation bug for pgsql. 2013-09-10 08:24:14 -04:00
Qiang Xue
2e01c06a4b Fixes #865. 2013-09-10 08:15:46 -04:00
Qiang Xue
b6f07859c1 Added support for getting all tables for pgsql. 2013-09-08 08:47:52 -04:00
Carsten Brandt
8ca17bbfbc Merge pull request #847 from yiisoft/cubrid
[WIP] Cubrid db support
2013-09-06 07:14:41 -07:00
Carsten Brandt
23b858a2cc removed comments 2013-09-06 15:51:30 +02:00
Carsten Brandt
164c70eebc Add support for composite FK to cubrid 2013-09-06 15:32:33 +02:00
Carsten Brandt
8abeed03bd added SchemaTest 2013-09-06 15:03:57 +02:00
Carsten Brandt
e996f3dfd5 Workaround for broken PDO::quote() in CUBRID 9.1.0
http://jira.cubrid.org/browse/APIS-658
2013-09-06 13:53:33 +02:00