pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:48:
*/ private Regexp paralleliseprefix =iregexp("^\a*((SELEC|INSER)T|(UPDA|DELE)TE|(FETC|WIT)H)\a"); /* Statements matching transbeginprefix will cause the driver * insert a sync after the statement. * Failure to do so, will result in portal synchronisation errors * 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. * Failure to do so, will result in portal synchronisation errors * 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 */ private Regexp execfetchlimit =iregexp("^\a*((UPDA|DELE)TE|INSERT)\a|\aLIMIT\a+[1-9][; \t\f\r\n]*$"); private Regexp iregexp(string expr) { Stdio.Buffer ret=Stdio.Buffer(); foreach(expr;;int c)