function tripal_db_set_savepoint_transaction
1.x tripal_core_chado.api.inc | tripal_db_set_savepoint_transaction($savepoint, $release = FALSE) |
Set a savepoint to roll the current transaction back to if an error is encountered
1 call to tripal_db_set_savepoint_transaction()
- tripal_bulk_loader_load_data in tripal_bulk_loader/
includes/ tripal_bulk_loader.loader.inc - Tripal Bulk Loader
File
- tripal_core/
api/ tripal_core_chado.api.inc, line 3263 - The Tripal Core API
Code
function tripal_db_set_savepoint_transaction($savepoint, $release = FALSE) {
// Postgresql requires a savepoint of the same name to be unset before re-use
if ($release) {
chado_query("RELEASE SAVEPOINT %s", $savepoint);
}
chado_query("SAVEPOINT %s", $savepoint);
}