PostgreSQLCommandTest.php 580 Bytes
Newer Older
1 2 3 4 5 6 7 8
<?php
namespace yii\tests\unit\framework\db\pgsql;

use yiiunit\framework\db\CommandTest;

class PostgreSQLCommandTest extends CommandTest
{
    public $driverName = 'pgsql';
9 10 11 12 13 14 15 16 17

    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);
    }
18 19 20 21 22

    public function testBindParamValue()
    {
        $this->markTestIncomplete('TODO: impement it');
    }
23
}