aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/ecpglib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/lib/ecpglib.c')
-rw-r--r--src/interfaces/ecpg/lib/ecpglib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c
index 9f5911c4774..19ec7f3b69a 100644
--- a/src/interfaces/ecpg/lib/ecpglib.c
+++ b/src/interfaces/ecpg/lib/ecpglib.c
@@ -232,7 +232,7 @@ ECPGdo(int lineno, char *query,...)
return false;
}
- /* Now then request is built. */
+ /* Now the request is built. */
if (committed)
{
@@ -646,3 +646,10 @@ ECPGlog(const char *format,...)
free(f);
}
}
+
+/* print out an error message */
+void sqlprint(void)
+{
+ sqlca.sqlerrm.sqlerrmc[sqlca.sqlerrm.sqlerrml] = '\0';
+ printf ("sql error %s\n", sqlca.sqlerrm.sqlerrmc);
+}