summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/controller/selection_to_db.h9
-rw-r--r--src/controller/selection_to_db.sqc9
-rw-r--r--src/controller/selsave.h9
-rw-r--r--src/controller/selsave.sqc41
4 files changed, 56 insertions, 12 deletions
diff --git a/src/controller/selection_to_db.sqc b/src/controller/selection_to_db.sqc
index a6c91b9..0d7de7f 100644
--- a/src/controller/selection_to_db.sqc
+++ b/src/controller/selection_to_db.sqc
@@ -1,8 +1,9 @@
#include "selection_to_db.h"
#include "../view/exp004state0.h"
#include <string.h>
-
-EXEC SQL INCLUDE sqlca;
+#include "../util/check_error.h"
+#include "sqlca.h"
+extern struct sqlca sqlca;
/*
* A simple alias to make the code more readable.
@@ -22,7 +23,8 @@ selection_to_db (void)
* gi is defined as NOT NULL this will clear the entire table.
*/
EXEC SQL DELETE FROM vis_selection WHERE gi IS NOT NULL;
-
+ check_error (__FILE__, __LINE__);
+
for (unsigned int i = 0; i < ROWS; i++)
{
if (S.selection[i] == true)
@@ -33,6 +35,7 @@ selection_to_db (void)
}
EXEC SQL COMMIT;
+ check_error (__FILE__, __LINE__);
return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.