Skip to content

Commit

Permalink
Use PQescapeLiteral() to detect PostgreSQL 9.0.
Browse files Browse the repository at this point in the history
Calling PQconnectStartParams(NULL, *, *) results in SIGSEGV.
  • Loading branch information
PiotrSikora committed Jan 13, 2011
1 parent ad1dde6 commit c605b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ngx_feature_test="printf(\"%d\", PQlibVersion())"
if [ $ngx_found = no ]; then if [ $ngx_found = no ]; then
lib_version=90000 lib_version=90000
ngx_feature="libpq library version 9.0" ngx_feature="libpq library version 9.0"
ngx_feature_test="(void) PQconnectStartParams(NULL, NULL, 0); ngx_feature_test="(void) PQescapeLiteral(NULL, NULL, 0);
printf(\"$lib_version\")" printf(\"$lib_version\")"
. auto/feature . auto/feature
fi fi
Expand Down

0 comments on commit c605b58

Please sign in to comment.