mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
22 lines
506 B
PHP
22 lines
506 B
PHP
<?php
|
|
namespace yii\tests\unit\framework\db\pgsql;
|
|
|
|
use yiiunit\framework\db\CommandTest;
|
|
|
|
/**
|
|
* @group db
|
|
* @group pgsql
|
|
*/
|
|
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);
|
|
}
|
|
} |