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

This commit is contained in:
zero 2007-04-11 06:19:46 +00:00
parent 5a2d1a4018
commit 33880eacf2

View file

@ -149,26 +149,26 @@
* @brief 트랜잭션 시작 * @brief 트랜잭션 시작
**/ **/
function begin() { function begin() {
if(!$this->is_connected || $this->transaction_started) return; //if(!$this->is_connected || $this->transaction_started) return;
$this->transaction_started = true; //$this->transaction_started = true;
} }
/** /**
* @brief 롤백 * @brief 롤백
**/ **/
function rollback() { function rollback() {
if(!$this->is_connected || !$this->transaction_started) return; //if(!$this->is_connected || !$this->transaction_started) return;
cubrid_rollback($this->fd); //cubrid_rollback($this->fd);
$this->transaction_started = false; //$this->transaction_started = false;
} }
/** /**
* @brief 커밋 * @brief 커밋
**/ **/
function commit() { function commit() {
if(!$this->is_connected || !$this->transaction_started) return; //if(!$this->is_connected || !$this->transaction_started) return;
cubrid_commit($this->fd); //cubrid_commit($this->fd);
$this->transaction_started = false; //$this->transaction_started = false;
} }
/** /**
@ -360,7 +360,7 @@
foreach($column as $key => $val) { foreach($column as $key => $val) {
$key_list[] = $key; $key_list[] = $key;
if($val) { if($val) {
if(is_numeric($val) || in_array($key, $pass_quotes)) $val_list[] = $this->addQuotes($val); if(in_array($key, $pass_quotes)) $val_list[] = $this->addQuotes($val);
else $val_list[] = "'".$this->addQuotes($val)."'"; else $val_list[] = "'".$this->addQuotes($val)."'";
} else $val_list[] = "null"; } else $val_list[] = "null";
} }
@ -379,7 +379,7 @@
if(!isset($args->{$key})) continue; if(!isset($args->{$key})) continue;
if($vla) { if($vla) {
if(is_numeric($val) || in_array($key, $pass_quotes)) $update_list[] = sprintf('"%s" = %s', $key, $this->addQuotes($val)); if(in_array($key, $pass_quotes)) $update_list[] = sprintf('"%s" = %s', $key, $this->addQuotes($val));
else $update_list[] = sprintf('"%s" = \'%s\'', $key, $this->addQuotes($val)); else $update_list[] = sprintf('"%s" = \'%s\'', $key, $this->addQuotes($val));
} else $update_list[] = "null"; } else $update_list[] = "null";
} }