Carsten Brandt
fb2441c3d7
moved query log logic into private method and reduced calls to getRawSql()
...
fixes #12528
7 years ago
Carsten Brandt
65ea226729
added option to disable query logging in DB command
...
fixes #12528
7 years ago
Klimov Paul
d8e6a89af9
fixed tests without assettions
8 years ago
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
8 years ago
Alexander Makarov
3f8e8a89eb
Used more specific unit test assertions in framework 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
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
Sam Mousa
af5f5d0e3e
Fixes #9851 : Fixed partial commit / rollback in nested transactions
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
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Alexander Makarov
608e9012fb
Adjusted Connection::transaction to provide Connection instance by default instead of transaction instance
10 years ago
Alexander Makarov
56a7ec7618
Passed transaction as callback argument for Connection::transaction() method
10 years ago
Alexander Makarov
a0051820a7
Fixed tests
10 years ago
Ragazzo
e5195937e4
Fixes #3384 : Added callback-style transactions
10 years ago
Carsten Brandt
4f95fcd91f
added unit tests for schema detection
...
fixed some issues with schema detection
10 years ago
Carsten Brandt
cc8a8360cb
added unit test and notes about dbms specific settings
10 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
949dda5fdb
tagged tests with @group tags
11 years ago
Carsten Brandt
544e412af8
unit test cleanup
11 years ago
Alexander Makarov
0596fa82fd
code style fixes
11 years ago
Qiang Xue
f2e57b2eec
Fixed test breaks.
11 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
Rusinov Maxim
d712605a71
Added and resolved Sqlite tests #15 .
12 years ago
Qiang Xue
597082a11a
Automatic table and column name quoting.
12 years ago
Qiang Xue
9958a5802e
DB cleanup
12 years ago
Qiang Xue
736d30684e
refactored the active property of Connection and Transaction.
...
refactored Transaction.
12 years ago
Qiang Xue
e0cd52fb65
moved Connection::getPdoType() to Command.
12 years ago
Qiang Xue
fe90d4dda0
implemented auto-quoting for DB commands.
12 years ago
Qiang Xue
d15378ef43
moved db tests.
12 years ago
Qiang Xue
8517ee9e50
reorganized DB classes.
12 years ago
Qiang Xue
376dd0d41e
..
13 years ago
Qiang Xue
ab29feea85
...
13 years ago
Qiang Xue
a9439e9038
...
13 years ago
Qiang Xue
d991f42cbd
Use namespace in unit tests.
...
Fixed BehaviorTest.php
13 years ago
Qiang Xue
be87e1780c
w
13 years ago
Qiang Xue
e6a9e64515
finished Connection.
13 years ago
Qiang Xue
5f2f574381
w
13 years ago
Qiang Xue
f082c0eb9a
w
13 years ago