126 Commits

Author SHA1 Message Date
9a915ba10c Fixes #8120: Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in yii\db\QueryBuilder 2017-02-24 01:24:06 +03:00
fab53b4a6e Fixes #13582: Added tests for all yii\db\QueryBuilder::resetSequence implementations, fixed SQLite implementation 2017-02-20 23:04:04 +03:00
2f8225a244 Fixed QueryBuilderTest to work with PgSQL and other DBMS 2016-12-17 21:58:22 +02:00
54c7e0c434 Added tests for QueryBuilder::batchInsert() 2016-12-17 19:20:01 +02:00
ae83dd0524 Fixes #13128: Fixed incorrect position of {pos} string in ColumnSchemaBuilder __toString 2016-12-11 23:36:35 +03:00
b8bf0d0c0c added hint into foreign keys query for oracle 11g optimisation
update oci tests
improved varible name

Closes #13122
2016-12-10 20:26:22 +02:00
fb210b8839 Fixed typo in data type. Fixes #12599 2016-09-26 14:06:08 +03:00
3861108553 Fixed casting of binnary() type for MSSQL. Closes #12599 2016-09-26 13:41:27 +03:00
ef0658726f Revert "Revert "fixed mysql defaul integer display width on unsigned pk""
This reverts commit 144d78ebb46874cd229f5c13ac3ca7ce3d59f1f2.

fixes #11541
2016-08-08 13:36:08 +02:00
144d78ebb4 Revert "fixed mysql defaul integer display width on unsigned pk"
This reverts commit 85d89e489311e20c626bcb90129c0c86978fcee4 because it
is a breaking change. see #11541
2016-08-08 11:54:29 +02:00
85d89e4893 fixed mysql defaul integer display width on unsigned pk
fixes #11541
2016-08-08 10:47:34 +02:00
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