summaryrefslogtreecommitdiff
path: root/feature-tests/escape-identifier.c
diff options
context:
space:
mode:
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;
+}