Commit 48dbde39 by Alexander Makarov

Fixed PostgreSQL test

parent 6cfc9496
......@@ -6,4 +6,13 @@ use yiiunit\framework\db\CommandTest;
class PostgreSQLCommandTest extends CommandTest
{
public $driverName = 'pgsql';
public function testAutoQuoting()
{
$db = $this->getConnection(false);
$sql = 'SELECT [[id]], [[t.name]] FROM {{customer}} t';
$command = $db->createCommand($sql);
$this->assertEquals('SELECT "id", "t"."name" FROM "customer" t', $command->sql);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment