Fix: Dans un context de transactions imbriquées, le commit pouvait se faire dans un sous niveau
This commit is contained in:
parent
3af5d793a6
commit
e904da75ba
@ -346,7 +346,7 @@ class DoliDb
|
|||||||
|
|
||||||
function rollback()
|
function rollback()
|
||||||
{
|
{
|
||||||
if ($this->transaction_opened)
|
if ($this->transaction_opened==1)
|
||||||
{
|
{
|
||||||
$ret=$this->query("ROLLBACK");
|
$ret=$this->query("ROLLBACK");
|
||||||
$this->transaction_opened=0;
|
$this->transaction_opened=0;
|
||||||
|
|||||||
@ -326,7 +326,7 @@ class DoliDb
|
|||||||
*/
|
*/
|
||||||
function rollback()
|
function rollback()
|
||||||
{
|
{
|
||||||
if ($this->transaction_opened)
|
if ($this->transaction_opened==1)
|
||||||
{
|
{
|
||||||
$ret=$this->query("ROLLBACK;");
|
$ret=$this->query("ROLLBACK;");
|
||||||
$this->transaction_opened=0;
|
$this->transaction_opened=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user