diff --git a/framework/db/oci/Schema.php b/framework/db/oci/Schema.php index 78e0c74074..90dc90147e 100644 --- a/framework/db/oci/Schema.php +++ b/framework/db/oci/Schema.php @@ -52,20 +52,12 @@ class Schema extends \yii\db\Schema // does nothing as Oracle does not support this } - /** - * @inheritdoc - */ - public function quoteSimpleTableName($name) + /** + * @inheritdoc + */ + public function quoteSimpleTableName($name) { - return '"' . $name . '"'; - } - - /** - * @inheritdoc - */ - public function quoteSimpleColumnName($name) - { - return $name !== '*' ? '"' . $name . '"' : $name; + return strpos($name, '"') !== false ? $name : '"' . $name . '"'; } /**