Qiang Xue
c4c328dc92
Fixes #1791 : support ON condition for relational query.
11 years ago
Qiang Xue
795a09c27a
Fixes #1791 : joinWithRelation using table alias.
11 years ago
Qiang Xue
cbad97c78d
change back the visibility of findTableNames to protected.
11 years ago
Carsten Brandt
795c74100d
reverted #1598 and added a test for it
11 years ago
Qiang Xue
0345191245
Added ActiveQuery::innerJoinWith().
11 years ago
Qiang Xue
4f44bb2416
Fixes #1581 : Added `ActiveQuery::joinWith()` to support joining with relations
11 years ago
Qiang Xue
2402d2d031
Draft implementation of ActiveQuery::joinWith().
11 years ago
Qiang Xue
164ddf98b0
Fixed test break.
11 years ago
Qiang Xue
b868e91fee
Fixed test break.
11 years ago
Qiang Xue
0390a99833
Use backquotes to quote column and table names for sqlite (related with #1318 )
11 years ago
Carsten Brandt
643593737d
added test case for #1310
11 years ago
Carsten Brandt
f017ba357f
refactored unit tests. put common AR tests in trait
11 years ago
John Was
e9fcde3264
support for batch insert in sqlite older than 3.7.11
11 years ago
Carsten Brandt
c6347d6d01
polished elasticsearch AR api, added mget and fixed AR::equals()
11 years ago
Carsten Brandt
77840adf65
Made ActiveRecord::isPrimaryKey() public
...
+ added tests and fixed behavior
11 years ago
Carsten Brandt
9448c3d471
added unit tests for active dataprovider and fixed query tests
11 years ago
slavcodev
b0b1c27c85
Fix phpDoc var tag format
11 years ago
Qiang Xue
9862ee35b2
Fixes #1115 : fixed the issue with PDO boolean value binding with pgsql
11 years ago
Carsten Brandt
433958b40c
removed sqlite specific test as it is the same as base AR test now
11 years ago
Qiang Xue
26c7f6d62f
Fixed sqlite column type detection bug.
11 years ago
Carsten Brandt
c8c377e698
skip test on postgres
11 years ago
Carsten Brandt
ee1689da03
some more on active record unit tests and sqlite
...
sqlite does not seem to allow using boolean values in select query
11 years ago
Carsten Brandt
937a55f4fa
fixed unit test for sqlite
11 years ago
Carsten Brandt
f153ce443a
reverted non working fix for #1115
11 years ago
Carsten Brandt
e5a1244e0f
moved unit test from cubrid to general
...
should be tested for all dbms not only cubrid even if the problem may
not exist in all of them it is good to verify that.
11 years ago
Carsten Brandt
34945b0b69
added unit test to verify storing of null values
...
http://www.yiiframework.com/forum/index.php/topic/48359-inserting-nulls/page__view__findpost__p__226019
11 years ago
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
b42f4b4ea0
fixed broken test
11 years ago
Carsten Brandt
3623fc19dc
refactored redis AR pk and findByPk
11 years ago
Carsten Brandt
563171eba4
moved redis out of yii\db namespace
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