|
|
|
@ -30,8 +30,8 @@ class SqliteConnectionTest extends ConnectionTest
|
|
|
|
|
public function testQuoteTableName() |
|
|
|
|
{ |
|
|
|
|
$connection = $this->getConnection(false); |
|
|
|
|
$this->assertEquals("'table'", $connection->quoteTableName('table')); |
|
|
|
|
$this->assertEquals("'schema'.'table'", $connection->quoteTableName('schema.table')); |
|
|
|
|
$this->assertEquals("`table`", $connection->quoteTableName('table')); |
|
|
|
|
$this->assertEquals("`schema`.`table`", $connection->quoteTableName('schema.table')); |
|
|
|
|
$this->assertEquals('{{table}}', $connection->quoteTableName('{{table}}')); |
|
|
|
|
$this->assertEquals('(table)', $connection->quoteTableName('(table)')); |
|
|
|
|
} |
|
|
|
@ -39,8 +39,8 @@ class SqliteConnectionTest extends ConnectionTest
|
|
|
|
|
public function testQuoteColumnName() |
|
|
|
|
{ |
|
|
|
|
$connection = $this->getConnection(false); |
|
|
|
|
$this->assertEquals('"column"', $connection->quoteColumnName('column')); |
|
|
|
|
$this->assertEquals("'table'.\"column\"", $connection->quoteColumnName('table.column')); |
|
|
|
|
$this->assertEquals('`column`', $connection->quoteColumnName('column')); |
|
|
|
|
$this->assertEquals("`table`.`column`", $connection->quoteColumnName('table.column')); |
|
|
|
|
$this->assertEquals('[[column]]', $connection->quoteColumnName('[[column]]')); |
|
|
|
|
$this->assertEquals('{{column}}', $connection->quoteColumnName('{{column}}')); |
|
|
|
|
$this->assertEquals('(column)', $connection->quoteColumnName('(column)')); |
|
|
|
|