65 Commits

Author SHA1 Message Date
099b364b14 Fixed #9574: Implicit run ColumnSchemaBuilder::null() when default value is set to null. (#11813) 2016-06-25 15:52:11 +03:00
4e3c9e4a98 fixed scalar value for IN condition
fixes regression from 2.0.8 #10961

fixes #11536
2016-06-20 15:20:21 +02:00
7cea46bcb4 Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289 2016-06-06 19:57:42 +03:00
0a60466729 Fixes #11527: Fixed bigPrimaryKey() for SQLite 2016-06-06 19:33:22 +03:00
8c2a70b3e7 Moved TraversableObject to yiiunit\data\base namespace 2016-04-26 13:30:37 +03:00
e2e4f76229 Updated SqliteQueryBuilderTest to work with Composite in conditions
Updated code style, CHANGELOG
2016-04-25 23:36:41 +03:00
baab8d6a68 QueryBuilder now supports Traversable objects for IN clauses. 2016-04-25 23:36:32 +03:00
fd68e6814e added failing test for #11088 2016-04-22 11:01:53 +02:00
2478ba7b20 QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes() 2016-04-20 09:35:43 +03:00
1aa2f1d927 Removed sqlite/ColumnSchemaBuilder::comment() method override 2016-04-19 18:29:12 +03:00
0fe27b9d3b Refactored code in PR #9441 2016-04-19 17:48:25 +03:00
c9dfc90be0 Merge branch 'methods_for_schema_builder' of https://github.com/vaseninm/yii2 into vaseninm-methods_for_schema_builder 2016-04-19 12:21:33 +03:00
5316576361 Fixes after() column string builder (#11362) 2016-04-19 11:59:16 +03:00
2fe6cee8bf Added SQLite bigpk test. Moved schema builder patterns spreadsheet to docs/internals folder. 2016-03-21 23:39:54 -07:00
0b2db6f18a Fixing tests 2016-03-21 04:29:45 -07:00
7bfcd0c427 Fixing tests 2016-03-21 04:14:38 -07:00
d8d10229c6 Fixing tests 2016-03-21 03:59:27 -07:00
b8e44b2f47 Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype 2016-03-14 05:33:41 -07:00
7229b3aa7d QueryBuilder::buildAndCondition() - added Expression value extraction
Updated CHANGELOG
Added test case for param binding in `or` condition

Closes #11093
2016-03-13 19:22:32 +02:00
2bd14098f9 Fix Expression parameter binding in 'And' clause 2016-03-13 19:19:48 +02:00
c955ccfd47 Fixes primary key columns being added to table creation test 2016-02-26 18:00:30 -08:00
2f91889b70 Removed unsignedPrimaryKey() schema builder type; now, the unsigned() modifier works with primary key types e.g. pk()->unsigned() or bigpk()->unsigned(). 2016-02-26 17:48:03 -08:00
b697e173fc Fixed unsigned() modifier to enable use with PKs. 2016-02-26 14:14:52 -08:00
91018f6c38 Corrected MSSQL driver name. Fixed array addition to not overwrite matching keys. 2016-02-26 12:44:20 -08:00
553cca642c Reverted unsigned() pk modifier 2016-02-26 06:09:22 -08:00
f7d23f662d Made base QueryBuilderTest abstract to exclude it from tests. Added upgrade notes. 2016-02-26 05:27:31 -08:00
030ee68b01 Testing unsigned() modifier on PKs (now $this->primaryKey()->unsigned() works) 2016-02-26 04:39:05 -08:00
732a51b551 All common column definitions and expected outputs now in QueryBuilderTest::columnTypes(). DbmsSpecificQueryBuilderTest::columnTypes() adds DBMS specific column definitions. 2016-02-26 03:53:05 -08:00
4531b981f4 Items with text only in col 3 will be ignored 2016-02-26 00:35:27 -08:00
8eb746d1f1 Testing multi-DBMS capable column schema test data array 2016-02-26 00:05:43 -08:00
f709246cac Fixed test data 2016-02-22 10:05:47 -08:00
cbcdf11836 Formatting 2016-02-22 09:47:25 -08:00
0a336df6ba Check return value of strncmp. Corrected SQLite expected schema test data. 2016-02-22 09:30:04 -08:00
f500354040 Remove _all_ variants of primary key columns from testCreateTableColumnTypes() test 2016-02-22 09:08:34 -08:00
0f0964be90 Correct builder type in test data 2016-02-22 08:46:16 -08:00
13823834e2 Start of new tests 2016-02-22 08:39:41 -08:00
db5399b124 Added $expectedColumnSchemaBuilder back to test data 2016-02-22 05:28:54 -08:00
e0e82bc56b ColumnSchemaBuilder::__toString() should match $expected 2016-02-22 05:10:55 -08:00
3761682edf Upgraded some tests. Fixed MySQL test fixtures to create all tables with InnoDB. 2016-02-22 04:53:14 -08:00
eaeb926768 Adds char datatype to framework 2016-02-20 01:52:23 -08:00
187c314d01 better fix for test break b9880f32474bf30bd7662ee7f3465a0e58a2be2b 2016-02-17 14:27:10 +01:00
b9880f3247 added test for custom index hints in FROM and JOIN
close #10869
2016-02-16 21:24:00 +01:00
4c6ecbe79c fixed wrong assertation in test 2016-01-28 20:13:10 +01:00
261b3fd39b added a test for QueryBuilder PK 2016-01-28 17:43:14 +01:00
f0a62cdbd3 allow expressions in GROUP BY 2016-01-27 16:53:20 +01:00
5a462dc5d2 added tests and documentation for #8824 2016-01-27 16:26:43 +01:00
61df727eaf Expression objects for orderBy should be handled in QueryBuilder
fixes #10535
close #10637

- Added test to prove orderBy accepts \yii\db\Expression
2016-01-23 09:27:54 +01:00
615a29f04e More fixes for MSSQL tests 2015-12-09 03:07:32 +03:00
bea90e1228 Fixed yii\db\Query::where() does not add params from directly passed yii\db\Expression 2015-12-05 12:28:43 +02:00
decd45201c allow passing a single Expression object to select() and addSelect()
fixes #9883
2015-10-11 09:58:42 +02:00