mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 19:20:29 +08:00
Merge pull request #4210 from miramir/oci_schema
Removing unnecessary methods
This commit is contained in:
@@ -52,20 +52,12 @@ class Schema extends \yii\db\Schema
|
|||||||
// does nothing as Oracle does not support this
|
// does nothing as Oracle does not support this
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
public function quoteSimpleTableName($name)
|
public function quoteSimpleTableName($name)
|
||||||
{
|
{
|
||||||
return '"' . $name . '"';
|
return strpos($name, '"') !== false ? $name : '"' . $name . '"';
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
*/
|
|
||||||
public function quoteSimpleColumnName($name)
|
|
||||||
{
|
|
||||||
return $name !== '*' ? '"' . $name . '"' : $name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user