From 48dbde3911ef7f11865e7b025f414c0a1a06fb9c Mon Sep 17 00:00:00 2001 From: Alexander Makarov <sam@rmcreative.ru> Date: Tue, 6 May 2014 19:14:10 +0400 Subject: [PATCH] Fixed PostgreSQL test --- tests/unit/framework/db/pgsql/PostgreSQLCommandTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/framework/db/pgsql/PostgreSQLCommandTest.php b/tests/unit/framework/db/pgsql/PostgreSQLCommandTest.php index aa0a007..e29c3ac 100644 --- a/tests/unit/framework/db/pgsql/PostgreSQLCommandTest.php +++ b/tests/unit/framework/db/pgsql/PostgreSQLCommandTest.php @@ -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 -- libgit2 0.27.1