From: Pierre Joye Date: Wed, 1 Apr 2009 16:13:33 +0000 (+0000) Subject: - fix build when pqprepare does not exist X-Git-Tag: php-5.3.0RC2~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebfdd61503a15452c3bc9aa764126d496e8e9e84;p=php - fix build when pqprepare does not exist --- diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index ed5b56f028..b9bafd3326 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