From 3e5491e0896d80fd3ac797be5a1e1d021e3749c7 Mon Sep 17 00:00:00 2001
From: Carsten Brandt <mail@cebe.cc>
Date: Fri, 13 Sep 2013 17:45:55 +0200
Subject: [PATCH] changed cubrid table and column name quoting

` is a MySQL thing supported by cubrid. " is more common.
---
 framework/yii/db/cubrid/Schema.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/yii/db/cubrid/Schema.php b/framework/yii/db/cubrid/Schema.php
index fae932f..e192c9f 100644
--- a/framework/yii/db/cubrid/Schema.php
+++ b/framework/yii/db/cubrid/Schema.php
@@ -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 . '"';
 	}
 
 	/**
--
libgit2 0.27.1