Commit a4b9cf24 authored by Penny Leach's avatar Penny Leach
Browse files

added db_rollback

parent 9d9f89d0
......@@ -1290,6 +1290,15 @@ function db_commit() {
$db->CompleteTrans();
}
/**
* This function rolls back a smart transaction
*/
function db_rollback() {
global $db;
$db->FailTrans();
$db->CompleteTrans();
}
/**
* This function escapes a single value suitable for insertion into an SQL
* string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment