File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,16 @@ if(TARGET PostgreSQL::PostgreSQL)
8080 HAVE_PG_RESULT_MEMORY_SIZE
8181 )
8282 endif ()
83+
84+ # Available since PostgreSQL 17.
85+ if (PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 17)
86+ check_library_exists(
87+ PostgreSQL::PostgreSQL
88+ PQclosePrepared
89+ ""
90+ HAVE_PQCLOSEPREPARED
91+ )
92+ endif ()
8393endif ()
8494
8595if (RE2C_FOUND)
Original file line number Diff line number Diff line change 11521152 function. */
11531153#cmakedefine HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP 1
11541154
1155+ /* Define to 1 if libpq has the 'PQclosePrepared' function (PostgreSQL 17 or
1156+ later). */
1157+ #cmakedefine HAVE_PQCLOSEPREPARED 1
1158+
11551159/* Define to 1 if PGVerbosity enum has PQERRORS_SQLSTATE. */
11561160#cmakedefine HAVE_PQERRORS_SQLSTATE 1
11571161
Original file line number Diff line number Diff line change 11431143 function. */
11441144#cmakedefine HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP 1
11451145
1146+ /* Define to 1 if libpq has the 'PQclosePrepared' function (PostgreSQL 17 or
1147+ later). */
1148+ #cmakedefine HAVE_PQCLOSEPREPARED 1
1149+
11461150/* Define to 1 if PGVerbosity enum has PQERRORS_SQLSTATE. */
11471151#cmakedefine HAVE_PQERRORS_SQLSTATE 1
11481152
You can’t perform that action at this time.
0 commit comments