Ajout paramatre do pour gerer l'imbrication de plusieures transactions

This commit is contained in:
Rodolphe Quiedeville 2003-11-10 14:31:55 +00:00
parent f6ab596aea
commit 5a3e8fef37

View File

@ -109,20 +109,29 @@ class DoliDb {
return $this->ret; return $this->ret;
} }
Function begin() Function begin($do=1)
{
if ($do)
{ {
return $this->query("BEGIN"); return $this->query("BEGIN");
} }
}
Function commit() Function commit($do=1)
{
if ($do)
{ {
return $this->query("COMMIT"); return $this->query("COMMIT");
} }
}
Function rollback() Function rollback($do=1)
{
if ($do)
{ {
return $this->query("ROLLBACK"); return $this->query("ROLLBACK");
} }
}
Function query($query, $limit="", $offset="") Function query($query, $limit="", $offset="")
{ {