pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2017-06-27
2017-06-27 10:30:15 by Stephen R. van den Berg <srb@cuci.nl>
2aeb8a66ebfc0c944c215bc2849987a7a10822e8 (
12
lines) (+
7
/-
5
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Accellerate BEGIN/COMMIT statements.
1926:
*/ int transtype = .pgsql_util.transendprefix->match(q) ? TRANSEND : .pgsql_util.transbeginprefix->match(q) ? TRANSBEGIN : NOTRANS;
-
if(!
forcetext
&&
forcecache
=
=1
-
||
forcecache
!=
0
-
&&
(
sizeof(q)>=
MINPREPARELENGTH
|| transtype != NOTRANS
)
)
{
+
if
(
transtype
!
=
NOTRANS)
+
tp
=
.pgsql_util.describenodata;
// Description already known
+
else if (!forcetext &&
forcecache
=
= 1
+
||
forcecache
&& sizeof(q)
>=
MINPREPARELENGTH) {
object plugbuffer; while(catch(plugbuffer=c->start())) reconnect();
1956:
if(forcecache!=1 && .pgsql_util.createprefix->match(q)) { PD("Invalidate cache\n"); invalidatecache=1; // Flush cache on CREATE
-
tp=
UNDEFINED
;
+
tp
=
0
;
} else _prepareds[q]=tp=([]); }
1974:
plugbuffer->sendcmd(KEEP); // close start() tstart=gethrtime(); } else // sql_result autoassigns to portal
-
tp=
UNDEFINED
;
+
tp
=
0
;
.pgsql_util.sql_result portal; portal=.pgsql_util.sql_result(this,c,q, portalbuffersize, _alltyped, from, forcetext, timeout, syncparse, transtype);