diff --git a/lib/modules/Sql.pmod/pgsql_util.pmod b/lib/modules/Sql.pmod/pgsql_util.pmod index 8959dec8eaf152e440b915f426fd1e341d624028..8a397227e14e8e39a06ae6568a6b446641a6ea73 100644 --- a/lib/modules/Sql.pmod/pgsql_util.pmod +++ b/lib/modules/Sql.pmod/pgsql_util.pmod @@ -55,7 +55,7 @@ private Regexp paralleliseprefix * in the event of an ErrorResponse. */ final Regexp transbeginprefix - =iregexp("^\a*BEGIN[; \t\f\r\n]*$"); + =iregexp("^\a*(BEGIN|START)([; \t\f\r\n]|$)"); /* Statements matching transendprefix will cause the driver * insert a sync after the statement. @@ -63,7 +63,7 @@ final Regexp transbeginprefix * in the event of an ErrorResponse. */ final Regexp transendprefix - =iregexp("^\a*(COMMIT|ROLLBACK|END)[; \t\f\r\n]*$"); + =iregexp("^\a*(COMMIT|ROLLBACK|END)([; \t\f\r\n]|$)"); /* For statements matching execfetchlimit the resultrows will not be * fetched in pieces