Robert Korulczyk
104712103b
Fixes #11693 : Handle QueryBuilder::batchInsert() calls with no data to insert. ( #11812 )
8 years ago
Carsten Brandt
86f17c8dad
added tests classes for db related tests
8 years ago
Carsten Brandt
8ba032d147
refactored database tests
...
- changed test class naming for easier copying and searching of classes
- made base tests abstract and made MySQL an equal citisen in the test
hierarchie
- added missing db specific test classes
8 years ago
Carsten Brandt
4e3c9e4a98
fixed scalar value for IN condition
...
fixes regression from 2.0.8 #10961
fixes #11536
8 years ago
Thiago
bafc8b3325
Fixes #10422 , #9574 : New proposal fix for ColumnSchemaBuilder not null column
...
* Added ability to explicitly set column nullability #10422
* Removed isNull property.
* add since tag.
8 years ago
Alexander Makarov
7cea46bcb4
Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289
8 years ago
Boudewijn Vahrmeijer
0a60466729
Fixes #11527 : Fixed `bigPrimaryKey()` for SQLite
8 years ago
SilverFire - Dmitry Naumenko
77b29bf927
Added tests to ColumnSchemaBuilderTest in order to verify custom column types work OK
8 years ago
SilverFire - Dmitry Naumenko
b976f638d8
Added test for PgSQL BIGINT column to ensure typecasting works OK
...
Closes #11286
8 years ago
Oleg Balykin
515732c7b8
Test for bug dbTypecast with empty char #11548
8 years ago
Paul Klimov
6b607d078f
#11498 : Fixed unable to saved serialized object into PostgreSQL binary column ( #11499 )
...
#11498 : Fixed unable to saved serialized object into PostgreSQL binary column
9 years ago
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