Commit Graph

138 Commits

Author SHA1 Message Date
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
Carsten Brandt
791f9d3f4e better use int for boolean representation
bit has special syntax for storing and retreiving so we'd need a
converter for that.
Storing 1 bit will result in one byte left padded on the disc so the
result of a query for boolean 0 will be 0x00 and for boolean 1 will be
0x80.
2013-09-06 13:21:35 +02:00
Carsten Brandt
c6ef7ec9d5 moved Command::getPdoType() to Schema
this allows different implementation in different DBMS

CUBRID does not supprt PDO::TYPE_BOOL, so we use STRING here which will
be casted by the DBMS
2013-09-06 11:40:29 +02:00
Carsten Brandt
2387d00341 CUBRID added exception about wrong implementation of quoteValue 2013-09-05 18:22:24 +02:00
Carsten Brandt
57a91c842a CUBRID Query builder 2013-09-05 17:30:18 +02:00
Carsten Brandt
f4fb2d94ef finalizing cubrid Schema 2013-09-05 17:29:47 +02:00
Carsten Brandt
be67559fe1 added CUBIRD DB Schema class 2013-09-05 16:49:11 +02:00
Carsten Brandt
267f2d7849 fixed docs in db Schema classes 2013-09-05 16:47:05 +02:00
Carsten Brandt
8976b7cbd8 moved MSSQL specific property to mssql TableSchema 2013-09-05 12:48:52 +02:00
Carsten Brandt
d4995ddc57 updated php doc 2013-09-05 12:40:16 +02:00
Carsten Brandt
38dab3490a Fixed type of db\Exception::$errorInfo
type is array in PHP documentation
2013-09-01 20:00:03 +02:00
Carsten Brandt
7fa81949bf various documentation changes 2013-09-01 19:47:26 +02:00
Carsten Brandt
4d84e09479 typo in query builder, fixes #832 2013-08-30 16:57:11 +02:00
Qiang Xue
cb60fa5ddd Make sure query cloning works as expected. 2013-08-29 17:19:22 -04:00
Qiang Xue
6dba4da3ed Fixes #828: refactored QueryBuilder::build() 2013-08-29 16:47:48 -04:00
Carsten Brandt
c582e589d2 added note about differing property types 2013-08-28 15:18:13 +02:00
Carsten Brandt
ca69ef09d4 update of @property annotations 2013-08-28 14:59:52 +02:00
Carsten Brandt
bdb77f33ba updated @property annotations of many classes 2013-08-28 14:16:13 +02:00
Carsten Brandt
14181b2be0 Update PHPDoc command to update classfiles automatically 2013-08-28 11:36:25 +02:00
Carsten Brandt
3b91801a35 cherry picked RedisCache and redis\Connection from redis WIP branch
commit in redis branch was:
0cd65e7496
2013-08-27 17:29:38 +02:00
Qiang Xue
f941bfee60 Fixes #820. 2013-08-27 08:09:15 -04:00