git-svn-id: http://xe-core.googlecode.com/svn/trunk@1116 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-12 08:52:31 +00:00
parent eba01b284c
commit 7586d9a27d

View file

@ -91,6 +91,7 @@
**/ **/
function close() { function close() {
if(!$this->isConnected()) return; if(!$this->isConnected()) return;
cubrid_commit($this->fd);
@cubrid_disconnect($this->fd); @cubrid_disconnect($this->fd);
} }
@ -320,6 +321,7 @@
$pipe = $v['pipe']; $pipe = $v['pipe'];
$value = $this->getConditionValue($name, $value, $operation, $type); $value = $this->getConditionValue($name, $value, $operation, $type);
$str = $this->getConditionPart($name, $value, $operation); $str = $this->getConditionPart($name, $value, $operation);
if($sub_condition) $sub_condition .= ' '.$pipe.' '; if($sub_condition) $sub_condition .= ' '.$pipe.' ';
$sub_condition .= $str; $sub_condition .= $str;
@ -358,7 +360,7 @@
$value_list[] = $value; $value_list[] = $value;
} }
$query = sprintf("insert into %s (%s) values (%s);", implode(',',$table_list), '"'.implode('","',$column_list).'"', implode(',', $value_list)); $query = sprintf("insert into %s (%s) values (%s);", implode(',',$table_list), implode(',',$column_list), implode(',', $value_list));
return $this->_query($query); return $this->_query($query);
} }