Commit Graph

90 Commits

Author SHA1 Message Date
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
544e412af8 unit test cleanup 2013-09-06 15:03:25 +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
58f8293b84 custom bindValue test for cubrid 2013-09-06 13:24:36 +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
d6ff097cbb avoid hanging test on bindValue problems (close db connection in tearDown) 2013-09-06 10:28:10 +02:00
Carsten Brandt
825258efb8 cubrid unit tests WIP 2013-09-05 18:23:25 +02:00
Qiang Xue
30d6229943 Fixed test break. 2013-08-29 16:53:15 -04:00
Qiang Xue
6dba4da3ed Fixes #828: refactored QueryBuilder::build() 2013-08-29 16:47:48 -04:00
Alexander Makarov
0596fa82fd code style fixes 2013-08-13 02:43:47 +04:00
Qiang Xue
53a1f9608a Added unit test for ActiveDataProvider. 2013-07-09 08:47:19 -04:00
Qiang Xue
f03cdf0a47 renamed Command::queryRow() to queryOne(). 2013-07-09 08:01:10 -04:00
Qiang Xue
aa568aacb5 Added support for using callables as "ActiveQuery::indexBy". 2013-07-08 21:25:00 -04:00
Qiang Xue
f2e57b2eec Fixed test breaks. 2013-07-02 22:19:05 -04:00
Carsten Brandt
1df859cfa1 typo: primarykey -> primaryKey 2013-06-10 23:17:41 +02:00
gevik
f667b5785b - Added drop/add primary key methods to Command.php
- Added drop/add primary key methods to QueryBuilder.php
- Added mysql specific dropPrimarykey method
- Added sqlite specific dropPrimarykey and addPrimaryKey methods
- Added uint testing for dropPrimarykey and addPrimaryKey methods
- Corrected postgresql column types, by adding length and precision
2013-06-09 18:27:09 +02:00
Gevik Babakhani
3d79d992c4 Merge remote branch 'upstream/master' into pgsql-driver 2013-06-05 11:35:38 +02:00
Carsten Brandt
af68ee9d27 Sqlite unit test for abstract db types 2013-06-03 00:24:39 +02:00
Carsten Brandt
c28b0183a5 whitespace 2013-06-02 22:12:37 +02:00
Carsten Brandt
5c56c0fc02 Better flexibility for abstract db types
Feature was requested in yiisoft/yii#765
2013-06-02 16:05:11 +02:00
Gevik Babakhani
4602b575ad Save point: WIP implementing db schema functionality. 2013-05-29 17:44:53 +02:00
Gevik Babakhani
c30eae62d2 Added initial unit testing files for the pgsql driver. 2013-05-29 00:01:02 +02:00
Alexander Makarov
7cd9123c3b Tests cleanup
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
2013-05-24 18:35:00 +04:00
resurtm
8e1079cd04 MSSQL more tests. 2013-05-23 23:33:33 +06:00
resurtm
2430ebe95d MSSQL AR tests. 2013-05-22 22:37:09 +06:00
resurtm
90395b5df2 Refinements to MSSQL driver classes. 2013-05-22 21:34:41 +06:00
resurtm
cdcb8e513c Merge upstream/master into upstream/mssql. 2013-05-22 19:28:11 +06:00
Carsten Brandt
cb8f5d702f cleanup tests 2013-05-11 12:51:24 +02:00
resurtm
4686c7c386 Merge branch 'master' of github.com:yiisoft/yii2 into mssql 2013-05-11 16:15:09 +06:00
resurtm
ea68bd3a55 CS fixes. 2013-05-11 15:58:27 +06:00
resurtm
5575f53657 CS fixes. 2013-05-11 15:38:07 +06:00
resurtm
5c101ae314 Initial MSSQL tests. 2013-05-11 14:58:35 +06:00
Rusinov Maxim
452be102c6 Added newline at end files. 2013-05-09 23:27:19 +06:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Zander Baldwin
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
Qiang Xue
597082a11a Automatic table and column name quoting. 2013-03-30 18:28:54 -04:00
Qiang Xue
06feccff8b refactored query builder.
finished Sort.
2013-03-06 10:51:33 -05:00
Qiang Xue
7aa80d86f5 refactored execute() and query() methods in db/Command. 2013-02-01 17:18:49 -05:00
Qiang Xue
b51d347465 Added count, average, sum, min, max, scalar methods to ActiveQuery.
Added support for scopes defined in AR classes.
2013-01-17 19:26:20 -05:00
Qiang Xue
9958a5802e DB cleanup 2013-01-17 12:54:13 -05:00
Qiang Xue
736d30684e refactored the active property of Connection and Transaction.
refactored Transaction.
2013-01-15 19:13:39 -05:00
Qiang Xue
e0cd52fb65 moved Connection::getPdoType() to Command. 2013-01-15 18:32:08 -05:00
Qiang Xue
5d90e6da80 removed scopes.
finished AR documentation.
2013-01-14 20:19:08 -05:00
Qiang Xue
3ca50f3043 clean up AR 2013-01-13 10:23:03 -05:00
Qiang Xue
46ab456f4e finished new AR. 2013-01-12 23:16:26 -05:00
Qiang Xue
c9b104f0a1 refactored AR relation. 2013-01-09 16:50:17 -05:00
Qiang Xue
0e3e2698d7 cleanup of AR 2013-01-09 11:13:49 -05:00
Qiang Xue
fe90d4dda0 implemented auto-quoting for DB commands. 2013-01-06 22:41:20 -05:00
Qiang Xue
d15378ef43 moved db tests. 2013-01-05 21:29:42 -05:00