-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/db/dbconnect.sqc | 12 | ||||
-rw-r--r-- | src/util/check_error.c | 6 | ||||
-rw-r--r-- | src/util/check_error_db.c | 13 | ||||
-rw-r--r-- | src/util/check_error_db.h | 9 |
5 files changed, 36 insertions, 6 deletions
diff --git a/src/util/check_error.c b/src/util/check_error.c index c47ca43..7d116e9 100644 --- a/src/util/check_error.c +++ b/src/util/check_error.c | |||
@@ -2,8 +2,7 @@ | |||
2 | #include <error.h> | 2 | #include <error.h> |
3 | #include <errno.h> | 3 | #include <errno.h> |
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include "sqlinfoprint.h" | 5 | #include "check_error_db.h" |
6 | extern struct sqlca sqlca; | ||
7 | 6 | ||
8 | void | 7 | void |
9 | check_error (const char *filename, const unsigned int linenum) | 8 | check_error (const char *filename, const unsigned int linenum) |
@@ -23,8 +22,7 @@ check_error (const char *filename, const unsigned int linenum) | |||
23 | /* | 22 | /* |
24 | * Check for an error from the Database API. | 23 | * Check for an error from the Database API. |
25 | */ | 24 | */ |
26 | if (sqlinfoprint ("DB Error", &sqlca, filename, linenum) == 1) | 25 | check_error_db (filename, linenum); |
27 | exit (EXIT_FAILURE); | ||
28 | 26 | ||
29 | return; | 27 | return; |
30 | } | 28 | } |