Carsten Brandt
c62e0cbbfb
added unit test to verify AR afterSave isNewRecord value
...
closes #1084
11 years ago
Alexander Makarov
ee2af2661c
Removed unneeded use statements
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
a1e5fa356e
fixed cubrid schema test for pdo type
11 years ago
Carsten Brandt
598d01287b
added cubrid specific pdo type casting
...
cubrid pdo does not support PARAM_BOOL so we cast the value to integer
and store 0 and 1 instead
fixes #964
11 years ago
Alexander Makarov
8c1c3c59d9
Better AR connection init in tests
11 years ago
Qiang Xue
8899aaeb5b
moved getPdoType() to Schema.
11 years ago
Carsten Brandt
ef13a11f66
moved getPDOType() back to Command to avoid dependency on Schema
...
fixes #854
11 years ago
Carsten Brandt
949dda5fdb
tagged tests with @group tags
11 years ago
Carsten Brandt
d3740932a4
fixed broken cubrid tests
...
fixed expected quoting
11 years ago
Qiang Xue
6c6cb3cd90
Fixes #853 : Added composite FK support for SQLite.
11 years ago
Qiang Xue
02fd82c42a
Fixed build break.
11 years ago
Qiang Xue
6fe152da7e
Reverted 0bf2dad: it's very common to use lower case for column types and upper case for other DB keywords.
11 years ago
Carsten Brandt
164c70eebc
Add support for composite FK to cubrid
11 years ago
Carsten Brandt
8abeed03bd
added SchemaTest
11 years ago
Carsten Brandt
544e412af8
unit test cleanup
11 years ago
Carsten Brandt
e996f3dfd5
Workaround for broken PDO::quote() in CUBRID 9.1.0
...
http://jira.cubrid.org/browse/APIS-658
11 years ago
Carsten Brandt
58f8293b84
custom bindValue test for cubrid
11 years ago
Carsten Brandt
791f9d3f4e
better use int for boolean representation
...
bit has special syntax for storing and retreiving so we'd need a
converter for that.
Storing 1 bit will result in one byte left padded on the disc so the
result of a query for boolean 0 will be 0x00 and for boolean 1 will be
0x80.
11 years ago
Carsten Brandt
d6ff097cbb
avoid hanging test on bindValue problems (close db connection in tearDown)
11 years ago
Carsten Brandt
825258efb8
cubrid unit tests WIP
11 years ago
Qiang Xue
30d6229943
Fixed test break.
11 years ago
Qiang Xue
6dba4da3ed
Fixes #828 : refactored QueryBuilder::build()
11 years ago
Suralc
5c8927af7d
Added ExistValidatorTest and added new option to DatabaseTestCase
12 years ago
Alexander Makarov
0596fa82fd
code style fixes
12 years ago
Qiang Xue
53a1f9608a
Added unit test for ActiveDataProvider.
12 years ago
Qiang Xue
f03cdf0a47
renamed Command::queryRow() to queryOne().
12 years ago
Qiang Xue
aa568aacb5
Added support for using callables as "ActiveQuery::indexBy".
12 years ago
Qiang Xue
f2e57b2eec
Fixed test breaks.
12 years ago
Carsten Brandt
1df859cfa1
typo: primarykey -> primaryKey
12 years ago
gevik
f667b5785b
- Added drop/add primary key methods to Command.php
...
- Added drop/add primary key methods to QueryBuilder.php
- Added mysql specific dropPrimarykey method
- Added sqlite specific dropPrimarykey and addPrimaryKey methods
- Added uint testing for dropPrimarykey and addPrimaryKey methods
- Corrected postgresql column types, by adding length and precision
12 years ago
Carsten Brandt
af68ee9d27
Sqlite unit test for abstract db types
12 years ago
Carsten Brandt
c28b0183a5
whitespace
12 years ago
Carsten Brandt
5c56c0fc02
Better flexibility for abstract db types
...
Feature was requested in yiisoft/yii#765
12 years ago
Gevik Babakhani
4602b575ad
Save point: WIP implementing db schema functionality.
12 years ago
Gevik Babakhani
c30eae62d2
Added initial unit testing files for the pgsql driver.
12 years ago
Alexander Makarov
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
12 years ago
resurtm
8e1079cd04
MSSQL more tests.
12 years ago
resurtm
2430ebe95d
MSSQL AR tests.
12 years ago
resurtm
90395b5df2
Refinements to MSSQL driver classes.
12 years ago
Carsten Brandt
cb8f5d702f
cleanup tests
12 years ago
resurtm
ea68bd3a55
CS fixes.
12 years ago
resurtm
5575f53657
CS fixes.
12 years ago
resurtm
5c101ae314
Initial MSSQL tests.
12 years ago
Rusinov Maxim
452be102c6
Added newline at end files.
12 years ago
Rusinov Maxim
d712605a71
Added and resolved Sqlite tests #15 .
12 years ago
Zander Baldwin
4be9e195c2
Add Newlines
...
Appended newlines to every PHP document that did not have a newline as the last character in the file.
12 years ago
Qiang Xue
597082a11a
Automatic table and column name quoting.
12 years ago
Qiang Xue
06feccff8b
refactored query builder.
...
finished Sort.
12 years ago
Qiang Xue
7aa80d86f5
refactored execute() and query() methods in db/Command.
12 years ago