mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-07 15:57:35 +01:00
fixed postgres tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user