summaryrefslogtreecommitdiff
path: root/feature-tests/diag-query-position.c
diff options
context:
space:
mode:
Diffstat (limited to 'feature-tests/diag-query-position.c')
-rw-r--r--feature-tests/diag-query-position.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/feature-tests/diag-query-position.c b/feature-tests/diag-query-position.c
new file mode 100644
index 0000000..8feb629
--- /dev/null
+++ b/feature-tests/diag-query-position.c
@@ -0,0 +1,7 @@
+#include <libpq-fe.h>
+int main(void)
+{
+ int foo = PG_DIAG_INTERNAL_QUERY;
+ int bar = PG_DIAG_INTERNAL_POSITION;
+ return foo + bar;
+}