From: Pierre Joye Date: Wed, 1 Apr 2009 16:14:50 +0000 (+0000) Subject: - MFB: fix build when pqprepare does not exist X-Git-Tag: php-5.4.0alpha1~191^2~3999 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dc4ff564d0f08ab01d94a5f5b299ccf60bf776a;p=php - MFB: fix build when pqprepare does not exist --- 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