summaryrefslogtreecommitdiff
path: root/feature-tests/escape-identifier.c
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2018-06-11 21:39:55 +0200
committerPeter Bex <peter@more-magic.net>2018-06-11 21:56:43 +0200
commit385f6f23fee37617e0148babdb00783775d04a70 (patch)
tree6175f6364667fba196f83bcc328a38f626ee5be0 /feature-tests/escape-identifier.c
downloadchicken-postgresql-385f6f23fee37617e0148babdb00783775d04a70.tar.gz
Initial port of PostgreSQL egg to CHICKEN 54.0.0
Diffstat (limited to 'feature-tests/escape-identifier.c')
-rw-r--r--feature-tests/escape-identifier.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/feature-tests/escape-identifier.c b/feature-tests/escape-identifier.c
new file mode 100644
index 0000000..8188cbf
--- /dev/null
+++ b/feature-tests/escape-identifier.c
@@ -0,0 +1,6 @@
+#include <libpq-fe.h>
+int main(void)
+{
+ PGconn *conn = NULL; /* Bork */
+ return PQescapeIdentifier(conn, "test", 4) != NULL;
+}