diff -r 90e2064c8ea2 -r 2164d18cb10c includes/dbal.php --- a/includes/dbal.php Thu Mar 31 13:09:56 2011 -0400 +++ b/includes/dbal.php Thu Jun 02 05:24:38 2011 -0400 @@ -645,6 +645,33 @@ '; $template->footer(); } + + /** + * Begin transaction + */ + + function transaction_begin() + { + $this->sql_query('BEGIN;'); + } + + /** + * Commit transaction + */ + + function transaction_commit() + { + $this->sql_query('COMMIT;'); + } + + /** + * Rollback transaction + */ + + function transaction_rollback() + { + $this->sql_query('ROLLBACK;'); + } } class postgresql @@ -1254,6 +1281,33 @@ '; $template->footer(); } + + /** + * Begin transaction + */ + + function transaction_begin() + { + $this->sql_query('BEGIN;'); + } + + /** + * Commit transaction + */ + + function transaction_commit() + { + $this->sql_query('COMMIT;'); + } + + /** + * Rollback transaction + */ + + function transaction_rollback() + { + $this->sql_query('ROLLBACK;'); + } } ?>