mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Add transaction helpers to query class.
This commit is contained in:
1 parent
ecf57ce54e
commit
e2ff9b575b
2 files changed
+38
No files matched your search
@@ -95,6 +95,7 @@ class AwlDatabase extends AwlDBDialect {
|
||||
else {
|
||||
trigger_error("Cannot begin a transaction while a transaction is already active.", E_USER_ERROR);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -106,6 +107,7 @@ class AwlDatabase extends AwlDBDialect {
|
||||
$this->db->commit();
|
||||
$this->txnstate = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +122,7 @@ class AwlDatabase extends AwlDBDialect {
|
||||
else {
|
||||
trigger_error("Cannot rollback unless a transaction is already active.", E_USER_ERROR);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user