]> granicus.if.org Git - php/commitdiff
Postgres decision on this
authorMarcus Boerger <helly@php.net>
Tue, 22 Jul 2003 21:12:32 +0000 (21:12 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 22 Jul 2003 21:12:32 +0000 (21:12 +0000)
ext/pgsql/pgsql.c

index 381da5eaf324e336f0b852626135a56621e63663..e7dfaca30ef2487d061049510c8d271882be0780 100644 (file)
@@ -626,7 +626,7 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                        }
                        if (atof(PG_VERSION) >= 7.2) {
                                PGresult *pg_result;
-                               pg_result = PQexec(le->ptr, "RESET ALL");
+                               pg_result = PQexec(le->ptr, "BEGIN;COMMIT;RESET ALL;");
                                PQclear(pg_result);
                        }
                        pgsql = (PGconn *) le->ptr;