Skip to content

Commit c605b58

Browse files
committed
Use PQescapeLiteral() to detect PostgreSQL 9.0.
Calling PQconnectStartParams(NULL, *, *) results in SIGSEGV.
1 parent ad1dde6 commit c605b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ ngx_feature_test="printf(\"%d\", PQlibVersion())"
109109
if [ $ngx_found = no ]; then
110110
lib_version=90000
111111
ngx_feature="libpq library version 9.0"
112-
ngx_feature_test="(void) PQconnectStartParams(NULL, NULL, 0);
112+
ngx_feature_test="(void) PQescapeLiteral(NULL, NULL, 0);
113113
printf(\"$lib_version\")"
114114
. auto/feature
115115
fi

0 commit comments

Comments
 (0)