fixed postgres tests

This commit is contained in:
Carsten Brandt
2014-06-25 22:38:42 +02:00
parent c6f711ccca
commit cd5bdd90d2
7 changed files with 57 additions and 15 deletions

View File

@@ -84,6 +84,9 @@ class SqliteQueryBuilderTest extends QueryBuilderTest
public function testBatchInsert()
{
if (version_compare(\SQLite3::version()['versionString'], '3.7.11', '>=')) {
$this->markTestSkipped('This test is only relevant for SQLite < 3.7.11');
}
$sql = $this->getQueryBuilder()->batchInsert('{{customer}} t', ['t.id', 't.name'], [[1, 'a'], [2, 'b']]);
$this->assertEquals("INSERT INTO {{customer}} t (`t`.`id`, `t`.`name`) SELECT 1, 'a' UNION SELECT 2, 'b'", $sql);
}