Drop db_commit(), db_rollback(), db_begin() functions (unused).

pull/154/head
David Goodwin 7 years ago
parent 0b66cd6bd2
commit d088651fd6

@ -1751,32 +1751,6 @@ function db_update_q($table, $where, $values, $timestamp = array('modified')) {
return $result['rows'];
}
/**
* db_begin / db_commit / db_rollback
* Action: BEGIN / COMMIT / ROLLBACK transaction (PostgreSQL only!)
* Call: db_begin()
*/
function db_begin() {
if (db_pgsql()) { # TODO: also enable for mysql? (not supported by MyISAM, which is used for most tables)
db_query('BEGIN');
}
}
function db_commit() {
if (db_pgsql()) {
db_query('COMMIT');
}
}
function db_rollback() {
if (db_pgsql()) {
db_query('ROLLBACK');
}
}
/**
* db_log

Loading…
Cancel
Save