aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/ecpglib.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-19 13:52:17 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-19 13:52:17 +0000
commit1d6424b1fb04b3ee6b59fc9333c9afc6e8b8e285 (patch)
tree0048fa55c85541ee30e7375b380ee7ae05513d40 /src/interfaces/ecpg/lib/ecpglib.c
parented875a4132c0d72269cdeda2538c155ea23ace6d (diff)
downloadpostgresql-1d6424b1fb04b3ee6b59fc9333c9afc6e8b8e285.tar.gz
postgresql-1d6424b1fb04b3ee6b59fc9333c9afc6e8b8e285.zip
From: Michael Meskes <meskes@topsystem.de>
Here's my next patch. this one should fix some more bugs. ecpg now fully understands the whenever statement.
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);
+}