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