mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-16 20:27:24 +01:00
23 lines
493 B
PHP
23 lines
493 B
PHP
<?php
|
|
namespace yiiunit\framework\db\oci;
|
|
|
|
use yiiunit\framework\db\CommandTest;
|
|
|
|
/**
|
|
* @group db
|
|
* @group oci
|
|
*/
|
|
class OracleCommandTest extends CommandTest
|
|
{
|
|
protected $driverName = 'oci';
|
|
|
|
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);
|
|
}
|
|
}
|