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
Carsten Brandt
b9880f3247
added test for custom index hints in FROM and JOIN
...
close #10869
9 years ago
Sam Mousa
af5f5d0e3e
Fixes #9851 : Fixed partial commit / rollback in nested transactions
9 years ago
Carsten Brandt
ce35739469
joinWith implementation cleanup
9 years ago
Carsten Brandt
3f8df39f45
more tests for joinWith alias
...
also test on joining the same relation twice
9 years ago
Carsten Brandt
94571e2c23
improved tests for ActiveQuery::joinWith alias
9 years ago
Carsten Brandt
5f19e7aa41
Added Alias Syntax for joinWith()
...
Add alias syntax to joinWith(), e.g. joinWith('author a').
No need to know the table name for defining an alias for the relation.
fixes #2377 , alternative to #8788 , which allows later implementation of
getting alias and column name ambiguation.
depends on #10813 to be merged first.
9 years ago
Carsten Brandt
157d6c79cc
fixes #4972 by adding and `alias()` to `ActiveQuery`
...
allows defining an alias without knowing the model table name.
9 years ago
nainoon
076329bfba
add test for join with alias
...
close #8788
9 years ago
Alexander Makarov
12761bf677
MSSQL does not support explicit value for an IDENTITY column #9773
9 years ago
Alexander Makarov
e6f1179b62
Fixed MSSQL expected test result: we're adding ORDER BY (SELECT NULL) to limit and order queries and query params are empty array by default
9 years ago
Alexander Makarov
c36e679519
MSSQL doesn't have SUBSTR and isn't able to use expressions in ORDER BY and GROUP BY
9 years ago
Carsten Brandt
4c6ecbe79c
fixed wrong assertation in test
9 years ago
Carsten Brandt
261b3fd39b
added a test for QueryBuilder PK
9 years ago
Carsten Brandt
f0a62cdbd3
allow expressions in GROUP BY
9 years ago
Carsten Brandt
5a462dc5d2
added tests and documentation for #8824
9 years ago
Andrew Nester
61df727eaf
Expression objects for orderBy should be handled in QueryBuilder
...
fixes #10535
close #10637
- Added test to prove orderBy accepts \yii\db\Expression
9 years ago
Alexander Makarov
5cecb09c1b
Fixes #9443 : Added `unsigned()` to `ColumnSchemaBuilder`
9 years ago
Alexander Makarov
615a29f04e
More fixes for MSSQL tests
9 years ago
Klimov Paul
bea90e1228
Fixed `yii\db\Query::where()` does not add params from directly passed `yii\db\Expression`
9 years ago
Alexander Makarov
8765cae71c
Reverted #9656 because of BC break (reverted from commit 4a464afe9b
)
9 years ago
Edgard Lorraine Messias
7c9b7c77a7
Added tests for dropTable, truncateTable and renameTable
9 years ago
Sam Mousa
4a464afe9b
Fixes #9656 : `yii\db\BaseActiveRecord` refactored in order to getting, setting and unsetring attribute values using the same approach
9 years ago
SilverFire - Dmitry Naumenko
58119c5b11
Fixed testCreateTable, testAlterTable now quotes table name
9 years ago
Carsten Brandt
6acb76606c
fixed connection serialization test
9 years ago
Sam Mousa
603a956b8d
Implemented __sleep in yii\db\Connection
...
to support serializing the connection object without exceptions.
- Added test for serializing an open connection.
- Added unserialize test
close #10149
9 years ago
romeOz
9ed8b80493
Added tests for #9790
9 years ago
Edgard Lorraine Messias
2d8106a39c
Fixed testCreateTable and testAlterTable in CommandTest for MSSQL and OCI
9 years ago