diff options
Diffstat (limited to 'common/erase-query')
-rw-r--r-- | common/erase-query/driver.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/common/erase-query/driver.cxx b/common/erase-query/driver.cxx index a80a252..adbdb76 100644 --- a/common/erase-query/driver.cxx +++ b/common/erase-query/driver.cxx @@ -161,22 +161,18 @@ main (int argc, char* argv[]) t.commit (); } -#ifndef DATABASE_ORACLE { transaction t (db->begin ()); +#ifndef DATABASE_ORACLE assert (db->execute ("SELECT * FROM erase_query_object_v " "WHERE object_id = 1") == 0); - t.commit (); - } #else - { - transaction t (db->begin ()); assert (db->execute ("SELECT * FROM \"erase_query_object_v\" " "WHERE \"object_id\" = 1") == 0); +#endif t.commit (); } -#endif - } +} catch (const odb::exception& e) { cerr << e.what () << endl; |