pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2009-02-12
2009-02-12 21:06:51 by Stephen R. van den Berg <srb@cuci.nl>
24ea5514be916c7c69ac13563b5f0c3848261722 (
11
lines) (+
7
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Close statements were being suppressed.
Rev: lib/modules/Sql.pmod/pgsql.pike:1.54
1471:
return trbackendst(backendstatus); }
-
final private
void closestatement(
array(string)
plugbuf,
mapping tp) {
+
final private array(string)
closestatement(
mapping tp) {
string oldprep=tp->preparedname;
-
+
array(string) ret=({});
if(oldprep) { PD("Close statement %s\n",oldprep);
-
plugbuf+
=({"C",_c.plugint32(4+1+sizeof(oldprep)+1),
+
ret
=({"C",_c.plugint32(4+1+sizeof(oldprep)+1),
"S",oldprep,"\0"}); }
-
+
return ret;
} //! @decl Sql.pgsql_util.pgsql_result big_query(string query)
1580:
int oldhits=tp->hits; totalhits-=oldhits-(tp->hits=oldhits>>1); if(oldhits<=1) {
-
closestatement(
plugbuf,
tp);
+
plugbuf+=
closestatement(tp);
m_delete(prepareds,ind); } }
1593:
if(invalidatecache) { invalidatecache=0; foreach(prepareds;;mapping np) {
-
closestatement(
plugbuf,
np);
+
plugbuf+=
closestatement(np);
m_delete(np,"preparedname"); } }