summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/util/check_error.c13
-rw-r--r--src/util/sqlinfoprint.c73
-rw-r--r--src/util/sqlinfoprint.h15
3 files changed, 100 insertions, 1 deletions
diff --git a/src/util/sqlinfoprint.h b/src/util/sqlinfoprint.h
new file mode 100644
index 0000000..984694b
--- a/dev/null
+++ b/src/util/sqlinfoprint.h
@@ -0,0 +1,15 @@
+#ifndef SQLINFOPRINT_H
+#define SQLINFOPRINT_H
+
+#include "sqlca.h"
+
+/*
+ * Report SQL error messages. Based on code from:
+ * http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.apdv.embed.doc/doc/c0005779.html
+ */
+int sqlinfoprint (char *appMsg,
+ struct sqlca *pSqlca,
+ const char *file,
+ const unsigned int line);
+
+#endif // SQLINFOPRINT_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.