You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
478 B

<?php
namespace yiiunit\framework\db\sqlite;
use yiiunit\framework\db\CommandTest;
/**
* @group db
* @group sqlite
*/
class SqliteCommandTest extends CommandTest
{
11 years ago
protected $driverName = 'sqlite';
11 years ago
public function testAutoQuoting()
{
$db = $this->getConnection(false);
11 years ago
$sql = 'SELECT [[id]], [[t.name]] FROM {{tbl_customer}} t';
$command = $db->createCommand($sql);
$this->assertEquals("SELECT \"id\", 't'.\"name\" FROM 'tbl_customer' t", $command->sql);
}
}