octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 23:50:38 +08:00
Run common batch insert tests for SQLite
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 1 changed files with 8 additions and 1 deletions
@@ -59,7 +59,14 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
|
||||
$this->markTestSkipped('Comments are not supported in SQLite');
|
||||
}
|
||||
|
||||
public function testBatchInsert()
|
||||
public function batchInsertProvider()
|
||||
{
|
||||
$data = parent::batchInsertProvider();
|
||||
$data['escape-danger-chars']['expected'] = "INSERT INTO `customer` (`address`) VALUES ('SQL-danger chars are escaped: ''); --')";
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function testBatchInsertOnOlderVersions()
|
||||
{
|
||||
$db = $this->getConnection();
|
||||
if (version_compare($db->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION), '3.7.11', '>=')) {
|
||||
|
||||
Reference in New Issue
Block a user