Commit 3e5491e0 by Carsten Brandt

changed cubrid table and column name quoting

` is a MySQL thing supported by cubrid. " is more common.
parent b05442d3
......@@ -57,7 +57,7 @@ class Schema extends \yii\db\Schema
// Bit string data types
'bit' => self::TYPE_STRING,
'bit varying' => self::TYPE_STRING,
// Collection data types (considered strings for now, may add support for them later)
// Collection data types (considered strings for now)
'set' => self::TYPE_STRING,
'multiset' => self::TYPE_STRING,
'list' => self::TYPE_STRING,
......@@ -73,7 +73,7 @@ class Schema extends \yii\db\Schema
*/
public function quoteSimpleTableName($name)
{
return strpos($name, "`") !== false ? $name : "`" . $name . "`";
return strpos($name, '"') !== false ? $name : '"' . $name . '"';
}
/**
......@@ -84,7 +84,7 @@ class Schema extends \yii\db\Schema
*/
public function quoteSimpleColumnName($name)
{
return strpos($name, '`') !== false || $name === '*' ? $name : '`' . $name . '`';
return strpos($name, '"') !== false || $name === '*' ? $name : '"' . $name . '"';
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment