mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 12:52:19 +09:00
Issue 1793: Cannot delete page module instance - Updated CUBRID class autocommit
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10510 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7238e44ab4
commit
b1b0bad554
1 changed files with 10 additions and 5 deletions
|
|
@ -83,8 +83,8 @@
|
|||
define('__CUBRID_VERSION__', $cubrid_version);
|
||||
}
|
||||
|
||||
if(__CUBRID_VERSION__ >= '8.4.1')
|
||||
cubrid_set_autocommit($result, CUBRID_AUTOCOMMIT_FALSE);
|
||||
if(__CUBRID_VERSION__ >= '8.4.0')
|
||||
cubrid_set_autocommit($result, CUBRID_AUTOCOMMIT_TRUE);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
@ -130,7 +130,12 @@
|
|||
**/
|
||||
function _begin()
|
||||
{
|
||||
return true;
|
||||
if(__CUBRID_VERSION__ >= '8.4.0')
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
cubrid_set_autocommit($connection, CUBRID_AUTOCOMMIT_FALSE);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -148,9 +153,9 @@
|
|||
**/
|
||||
function _commit()
|
||||
{
|
||||
$connection = $this->_getConnection('master');
|
||||
$connection = $this->_getConnection('master');
|
||||
@cubrid_commit($connection);
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue