mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
cubrid의 db Handler 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4942 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c5058b202f
commit
8efa604147
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue