projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tabs/menu/roles extensions moved to module hooks file, added (un)install hooks.
[fa-stable.git]
/
includes
/
db
/
sql_functions.inc
diff --git
a/includes/db/sql_functions.inc
b/includes/db/sql_functions.inc
index 2e5a28f4595abf9a2d3b236247930603c5fbba94..85a25137df35b6b0997766b38bd4781421366f18 100644
(file)
--- a/
includes/db/sql_functions.inc
+++ b/
includes/db/sql_functions.inc
@@
-21,11
+21,9
@@
function begin_transaction()
global $transaction_level; // set in set_global_connection()
if (!$transaction_level) {
global $transaction_level; // set in set_global_connection()
if (!$transaction_level) {
- error_log('begin');
db_query("BEGIN", "could not start a transaction");
}
$transaction_level++;
db_query("BEGIN", "could not start a transaction");
}
$transaction_level++;
- error_log("level:$transaction_level");
}
function commit_transaction()
}
function commit_transaction()
@@
-35,10
+33,8
@@
function commit_transaction()
$transaction_level--;
if (!$transaction_level) {
$transaction_level--;
if (!$transaction_level) {
- error_log('commit');
db_query("COMMIT", "could not commit a transaction");
}
db_query("COMMIT", "could not commit a transaction");
}
- error_log("level:$transaction_level");
}
/*
}
/*
@@
-50,11
+46,8
@@
function cancel_transaction()
global $transaction_level;
if ($transaction_level) {
global $transaction_level;
if ($transaction_level) {
- error_log('rollback');
db_query("ROLLBACK", "could not cancel a transaction");
db_query("ROLLBACK", "could not cancel a transaction");
- } else
- error_log("no transactions");
-
+ }
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------