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

This commit is contained in:
zero 2007-04-12 04:51:47 +00:00
parent cea271683f
commit cd1fbe59f7
2 changed files with 11 additions and 3 deletions

View file

@ -113,18 +113,26 @@
* @brief 트랜잭션 시작
**/
function begin() {
if(!$this->isConnected() || $this->transaction_started) return;
$this->_query("begin");
}
/**
* @brief 롤백
**/
function rollback() {
if(!$this->isConnected() || !$this->transaction_started) return;
$this->_query("rollback");
$this->transaction_started = false;
}
/**
* @brief 커밋
**/
function commit() {
if(!$this->isConnected() || !$this->transaction_started) return;
$this->_query("commit");
$this->transaction_started = false;
}
/**

View file

@ -83,7 +83,7 @@
* @brief 트랜잭션 시작
**/
function begin() {
if(!$this->is_connected || $this->transaction_started) return;
if(!$this->isConnected() || $this->transaction_started) return;
if($this->handler->beginTransaction()) $this->transaction_started = true;
}
@ -91,7 +91,7 @@
* @brief 롤백
**/
function rollback() {
if(!$this->is_connected || !$this->transaction_started) return;
if(!$this->isConnected() || !$this->transaction_started) return;
$this->handler->rollBack();
$this->transaction_started = false;
}
@ -100,7 +100,7 @@
* @brief 커밋
**/
function commit() {
if(!$this->is_connected || !$this->transaction_started) return;
if(!$this->isConnected() || !$this->transaction_started) return;
$this->handler->commit();
$this->transaction_started = false;
}