mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1100 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a2d1a4018
commit
33880eacf2
1 changed files with 10 additions and 10 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue