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

This commit is contained in:
zero 2007-06-18 05:16:07 +00:00
parent ef531f5eed
commit 3a01cf8eac
9 changed files with 29 additions and 36 deletions

View file

@ -131,8 +131,8 @@
/**
* @brief 커밋
**/
function commit() {
if(!$this->isConnected() || !$this->transaction_started) return;
function commit($force = false) {
if(!$force && (!$this->isConnected() || !$this->transaction_started)) return;
$this->_query("commit");
$this->transaction_started = false;
}

View file

@ -105,7 +105,8 @@
/**
* @brief 커밋
**/
function commit() {
function commit($force = false) {
if(!$force && (!$this->isConnected() || !$this->transaction_started)) return;
if(!$this->is_connected || !$this->transaction_started) return;
$this->_query("COMMIT;");
$this->transaction_started = false;

View file

@ -113,8 +113,8 @@
/**
* @brief 커밋
**/
function commit() {
if(!$this->isConnected() || !$this->transaction_started) return;
function commit($force = false) {
if(!$force && (!$this->isConnected() || !$this->transaction_started)) return;
$this->handler->commit();
$this->transaction_started = false;
}