Add transaction helpers to query class.

This commit is contained in:
Andrew McMillan committed 2010-03-03 14:29:47 +13:00
1 parent ecf57ce54e
commit e2ff9b575b
2 files changed
+38

No files matched your search

+3
View File
@@ -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;
}