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

index 45b023b950b9443861581135fec43685f7343661..690c959615f2125d2399e1c8697a7e21654ce65e 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