Skip to content

Commit 899fe3d

Browse files
committed
Fix ext/pgsql builds with libpq < 7.3.
Fixes bug #67550 (Error in code "form" instead of "from", pgsql.c, line 756).
1 parent 6081dd7 commit 899fe3d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ PHP NEWS
1717
- FPM:
1818
. Fix bug #67531 (syslog cannot be set in pool configuration). (Remi)
1919

20+
- pgsql:
21+
. Fix bug #67550 (Error in code "form" instead of "from", pgsql.c, line 756),
22+
which affected builds against libpq < 7.3. (Adam)
23+
2024
- Streams:
2125
. Fixed bug #67430 (http:// wrapper doesn't follow 308 redirects). (Adam)
2226

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ static int le_link, le_plink, le_result, le_lofp, le_string;
753753
#endif
754754

755755
#if !HAVE_PQESCAPE_CONN
756-
#define PQescapeStringConn(conn, to, form, len, error) PQescapeString(to, from, len)
756+
#define PQescapeStringConn(conn, to, from, len, error) PQescapeString(to, from, len)
757757
#endif
758758

759759
#if HAVE_PQESCAPELITERAL

0 commit comments

Comments
 (0)