Branch: Tag:

2017-07-08

2017-07-08 19:43:31 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Recognise all generic BEGIN/START commands.

55:    * 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:    * 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