Changeset: 0f541dbb652e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/0f541dbb652e
Modified Files:
sql/backends/monet5/sql.c
Branch: default
Log Message:
Check if transaction starts successfully
diffs (17 lines):
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -5120,7 +5120,12 @@ str_column_vacuum_callback(int argc, voi
return GDK_FAIL;
}
- sql_trans_begin(session);
+ if (sql_trans_begin(session) < 0) {
+ TRC_ERROR((component_t) SQL, "[str_column_vacuum_callback] --
Failed to begin transaction!");
+ sql_session_destroy(session);
+ sa_destroy(sa);
+ return GDK_FAIL;
+ }
do {
if((s = find_sql_schema(session->tr, sname)) == NULL) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list