Carsten Brandt
4411a74ebd
proper fix for #9425 , adjust changes from #11363
...
includes tests and fix that works in all cases.
9 years ago
SilverFire - Dmitry Naumenko
8c2a70b3e7
Moved TraversableObject to yiiunit\data\base namespace
9 years ago
SilverFire - Dmitry Naumenko
e2e4f76229
Updated SqliteQueryBuilderTest to work with Composite in conditions
...
Updated code style, CHANGELOG
9 years ago
Sam Mousa
baab8d6a68
QueryBuilder now supports `Traversable` objects for `IN` clauses.
9 years ago
Carsten Brandt
37d2373911
added tests for #9047
...
1. verify it only affects composite primary key situation
2. add failing test for composite primary key situation with join
9 years ago
Lennart van den Dool
f8a844a90f
Query helper method for filter values containing operators
...
Basic implementation proposal for yiisoft/yii2#2022
Shortcomings/todo's:
* filtering on non-scalars (where IN statements) not supported
* Numeric properties with a corresponding validation rule will yield
errors when they contain an alphanumeric operator. These properties'
rules should be defined as 'string' or 'safe'.
* no implementation example in Gii code (yet).
close #8505
9 years ago
Carsten Brandt
8d8cd1a26d
adjusted dbms specific tests
9 years ago
Edgard Lorraine Messias
278bfca140
Fixed `quoteColumnName` for table start with `{{` or `[[`
9 years ago
Carsten Brandt
38d347c9f5
fix quoting column name in case of quoted table name
...
column name was not quoted if a table name was used, that was using the
table prefix feature.
fixes #11088
close #11238
9 years ago
Carsten Brandt
fd68e6814e
added failing test for #11088
9 years ago
SilverFire - Dmitry Naumenko
b77d74b6d6
Fixed broken PostgreSQLQueryBuilderTest::testCommentColumn()
9 years ago
SilverFire - Dmitry Naumenko
b08c82c5fe
Driver specific QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes()
9 years ago
SilverFire - Dmitry Naumenko
2478ba7b20
QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes()
9 years ago
SilverFire - Dmitry Naumenko
8999e66e71
Fixed SqliteQueryBuilderTest
9 years ago
SilverFire - Dmitry Naumenko
1aa2f1d927
Removed sqlite/ColumnSchemaBuilder::comment() method override
9 years ago
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
9 years ago
Chris Harris
5316576361
Fixes `after()` column string builder ( #11362 )
9 years ago
Ivaylo Ushev
5921865459
Fixed : #11270 - Error when link record in one to many relation. ( #11301 )
...
Fixed : #11270 - Error when link record in one to many relation.
9 years ago
Chris Harris
2fe6cee8bf
Added SQLite bigpk test. Moved schema builder patterns spreadsheet to docs/internals folder.
9 years ago
Chris Harris
0b2db6f18a
Fixing tests
9 years ago
Chris Harris
7bfcd0c427
Fixing tests
9 years ago
Chris Harris
d8d10229c6
Fixing tests
9 years ago
SilverFire - Dmitry Naumenko
7229b3aa7d
QueryBuilder::buildAndCondition() - added Expression value extraction
...
Updated CHANGELOG
Added test case for param binding in `or` condition
Closes #11093
9 years ago
CedricYii
2bd14098f9
Fix Expression parameter binding in 'And' clause
9 years ago
Chris Harris
c955ccfd47
Fixes primary key columns being added to table creation test
9 years ago
Chris Harris
2f91889b70
Removed `unsignedPrimaryKey()` schema builder type; now, the `unsigned()` modifier works with primary key types e.g. `pk()->unsigned()` or `bigpk()->unsigned()`.
9 years ago
Chris Harris
b697e173fc
Fixed `unsigned()` modifier to enable use with PKs.
9 years ago
Chris Harris
91018f6c38
Corrected MSSQL driver name. Fixed array addition to not overwrite matching keys.
9 years ago
Chris Harris
553cca642c
Reverted `unsigned()` pk modifier
9 years ago
Chris Harris
f7d23f662d
Made base `QueryBuilderTest` abstract to exclude it from tests. Added upgrade notes.
9 years ago
Chris Harris
030ee68b01
Testing `unsigned()` modifier on PKs (now `$this->primaryKey()->unsigned()` works)
9 years ago
Chris Harris
732a51b551
All common column definitions and expected outputs now in `QueryBuilderTest::columnTypes()`. `DbmsSpecificQueryBuilderTest::columnTypes()` adds DBMS specific column definitions.
9 years ago
Chris Harris
4531b981f4
Items with text only in col 3 will be ignored
9 years ago
Chris Harris
8eb746d1f1
Testing multi-DBMS capable column schema test data array
9 years ago
Carsten Brandt
5880968d45
added unit test for #10946
9 years ago
Chris Harris
0ca5a1a86a
Fixed test
9 years ago
Chris Harris
a997603ab6
More Postgres tests
9 years ago
Chris Harris
f709246cac
Fixed test data
9 years ago
Chris Harris
cbcdf11836
Formatting
9 years ago
Chris Harris
0a336df6ba
Check return value of strncmp. Corrected SQLite expected schema test data.
9 years ago
Chris Harris
f500354040
Remove _all_ variants of primary key columns from `testCreateTableColumnTypes()` test
9 years ago
Chris Harris
0f0964be90
Correct builder type in test data
9 years ago
Chris Harris
13823834e2
Start of new tests
9 years ago
Chris Harris
db5399b124
Added `$expectedColumnSchemaBuilder` back to test data
9 years ago
Chris Harris
e0e82bc56b
`ColumnSchemaBuilder::__toString()` should match `$expected`
9 years ago
Chris Harris
3761682edf
Upgraded some tests. Fixed MySQL test fixtures to create all tables with InnoDB.
9 years ago
Chris Harris
81ff4752d9
Added CHECK modifier to PK schema pattern. Modified UNSIGNED tests to not include modifier by default (i.e. only present when testing DBMSes that support it).
9 years ago
Chris Harris
eaeb926768
Adds `char` datatype to framework
9 years ago
Carsten Brandt
187c314d01
better fix for test break b9880f3247
9 years ago
SilverFire - Dmitry Naumenko
4e4fb02264
Fixed QueryBuilterTest for PgSQL
9 years ago