From 33880eacf2f2341e9fe304eda6671ae6bd6ea5f4 Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 11 Apr 2007 06:19:46 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1100 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid.class.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/classes/db/DBCubrid.class.php b/classes/db/DBCubrid.class.php index abe9375cd..5c55a1d8a 100644 --- a/classes/db/DBCubrid.class.php +++ b/classes/db/DBCubrid.class.php @@ -149,26 +149,26 @@ * @brief 트랜잭션 시작 **/ function begin() { - if(!$this->is_connected || $this->transaction_started) return; - $this->transaction_started = true; + //if(!$this->is_connected || $this->transaction_started) return; + //$this->transaction_started = true; } /** * @brief 롤백 **/ function rollback() { - if(!$this->is_connected || !$this->transaction_started) return; - cubrid_rollback($this->fd); - $this->transaction_started = false; + //if(!$this->is_connected || !$this->transaction_started) return; + //cubrid_rollback($this->fd); + //$this->transaction_started = false; } /** * @brief 커밋 **/ function commit() { - if(!$this->is_connected || !$this->transaction_started) return; - cubrid_commit($this->fd); - $this->transaction_started = false; + //if(!$this->is_connected || !$this->transaction_started) return; + //cubrid_commit($this->fd); + //$this->transaction_started = false; } /** @@ -360,7 +360,7 @@ foreach($column as $key => $val) { $key_list[] = $key; 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[] = "null"; } @@ -379,7 +379,7 @@ if(!isset($args->{$key})) continue; 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[] = "null"; }