You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
493 B
23 lines
493 B
10 years ago
|
<?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);
|
||
|
}
|
||
|
}
|