From 48e6cdfef1a8fab8a5d95d2f600d6909a4803fa0 Mon Sep 17 00:00:00 2001
From: "Stephen R. van den Berg" <srb@cuci.nl>
Date: Sat, 8 Jul 2017 16:17:07 +0200
Subject: [PATCH] pgsql: Recognise all generic BEGIN/START commands.

---
 lib/modules/Sql.pmod/pgsql_util.pmod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/modules/Sql.pmod/pgsql_util.pmod b/lib/modules/Sql.pmod/pgsql_util.pmod
index 8959dec8ea..8a397227e1 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
-- 
GitLab