From 1dc4ff564d0f08ab01d94a5f5b299ccf60bf776a Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 1 Apr 2009 16:14:50 +0000 Subject: [PATCH] - MFB: fix build when pqprepare does not exist --- ext/pdo_pgsql/pgsql_driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index 45b023b950..690c959615 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -233,7 +233,9 @@ static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, efree(S->cursor_name); } spprintf(&S->cursor_name, 0, "pdo_pgsql_cursor_%08x", (unsigned int) stmt); +#if HAVE_PQPREPARE emulate = 1; +#endif } #if HAVE_PQPREPARE -- 2.50.1