mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1111 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cea271683f
commit
cd1fbe59f7
2 changed files with 11 additions and 3 deletions
|
|
@ -113,18 +113,26 @@
|
||||||
* @brief 트랜잭션 시작
|
* @brief 트랜잭션 시작
|
||||||
**/
|
**/
|
||||||
function begin() {
|
function begin() {
|
||||||
|
if(!$this->isConnected() || $this->transaction_started) return;
|
||||||
|
$this->_query("begin");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 롤백
|
* @brief 롤백
|
||||||
**/
|
**/
|
||||||
function rollback() {
|
function rollback() {
|
||||||
|
if(!$this->isConnected() || !$this->transaction_started) return;
|
||||||
|
$this->_query("rollback");
|
||||||
|
$this->transaction_started = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 커밋
|
* @brief 커밋
|
||||||
**/
|
**/
|
||||||
function commit() {
|
function commit() {
|
||||||
|
if(!$this->isConnected() || !$this->transaction_started) return;
|
||||||
|
$this->_query("commit");
|
||||||
|
$this->transaction_started = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
* @brief 트랜잭션 시작
|
* @brief 트랜잭션 시작
|
||||||
**/
|
**/
|
||||||
function begin() {
|
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;
|
if($this->handler->beginTransaction()) $this->transaction_started = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
* @brief 롤백
|
* @brief 롤백
|
||||||
**/
|
**/
|
||||||
function rollback() {
|
function rollback() {
|
||||||
if(!$this->is_connected || !$this->transaction_started) return;
|
if(!$this->isConnected() || !$this->transaction_started) return;
|
||||||
$this->handler->rollBack();
|
$this->handler->rollBack();
|
||||||
$this->transaction_started = false;
|
$this->transaction_started = false;
|
||||||
}
|
}
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
* @brief 커밋
|
* @brief 커밋
|
||||||
**/
|
**/
|
||||||
function commit() {
|
function commit() {
|
||||||
if(!$this->is_connected || !$this->transaction_started) return;
|
if(!$this->isConnected() || !$this->transaction_started) return;
|
||||||
$this->handler->commit();
|
$this->handler->commit();
|
||||||
$this->transaction_started = false;
|
$this->transaction_started = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue