]> granicus.if.org Git - php/commitdiff
- fix build when pqprepare does not exist
authorPierre Joye <pajoye@php.net>
Wed, 1 Apr 2009 16:13:33 +0000 (16:13 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 1 Apr 2009 16:13:33 +0000 (16:13 +0000)
ext/pdo_pgsql/pgsql_driver.c

index ed5b56f028b34624c0f5cc6a55bcc2a7f70bb701..b9bafd33265b0e8b4943a991d299c2ef2a41cfde 100644 (file)
@@ -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