Fix savepoint bug
parent
9dc7e13788
commit
db0e0bda54
|
@ -276,7 +276,7 @@ class DatabaseMysql implements Database
|
|||
}
|
||||
elseif ($savepoint)
|
||||
{
|
||||
return $this->query("RELEASE SAVEPOINT sp".count($this->transactions));
|
||||
return $this->query("RELEASE SAVEPOINT sp".(1+count($this->transactions)));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ class DatabaseMysql implements Database
|
|||
}
|
||||
elseif ($savepoint)
|
||||
{
|
||||
return $this->query("ROLLBACK TO SAVEPOINT sp".count($this->transactions));
|
||||
return $this->query("ROLLBACK TO SAVEPOINT sp".(1+count($this->transactions)));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue