Index: src/backend/tcop/postgres.c =================================================================== RCS file: /cvsroot/pgsql-server/src/backend/tcop/postgres.c,v retrieving revision 1.318 diff -c -c -r1.318 postgres.c *** src/backend/tcop/postgres.c 20 Mar 2003 07:02:10 -0000 1.318 --- src/backend/tcop/postgres.c 21 Mar 2003 05:25:59 -0000 *************** *** 83,88 **** --- 83,90 ---- bool Warn_restart_ready = false; bool InError = false; + extern bool autocommit; + static bool EchoQuery = false; /* default don't echo */ /* *************** *** 893,899 **** * historical Postgres behavior, we do not force a transaction * boundary between queries appearing in a single query string. */ ! if (lnext(parsetree_item) == NIL && xact_started) { finish_xact_command(false); xact_started = false; --- 895,901 ---- * historical Postgres behavior, we do not force a transaction * boundary between queries appearing in a single query string. */ ! if ((lnext(parsetree_item) == NIL || !autocommit) && xact_started) { finish_xact_command(false); xact_started = false;