From 8efa6041478d9b88404c61149d9fb112c5070e80 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 20 Nov 2008 08:30:24 +0000 Subject: [PATCH] =?UTF-8?q?cubrid=EC=9D=98=20db=20Handler=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4942 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/db/DBCubrid.class.php b/classes/db/DBCubrid.class.php index 757cf7e2b..ebe899788 100644 --- a/classes/db/DBCubrid.class.php +++ b/classes/db/DBCubrid.class.php @@ -244,7 +244,7 @@ function addIndex($table_name, $index_name, $target_columns, $is_unique = false) { if(!is_array($target_columns)) $target_columns = array($target_columns); - $query = sprintf("create %s index %s on %s%s (%s);", $is_unique?'unique':'', $index_name, $this->prefix, $table_name, implode(',',$target_columns)); + $query = sprintf("create %s index %s on %s%s (%s);", $is_unique?'unique':'', $index_name, $this->prefix, $table_name, '"'.implode('","',$target_columns).'"'); $this->_query($query); } @@ -403,6 +403,7 @@ $value = $this->getConditionValue($name, $value, $operation, $type, $output->column_type); if(!$value) $value = $v['value']; if(strpos($name,'.')===false) $name = '"'.$name.'"'; + else $name = str_replace('.','."',$name).'"'; $str = $this->getConditionPart($name, $value, $operation);