pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql.pike:497:
} //! For PostgreSQL this function performs the same function as @[resync()]. //! //! @seealso //! @[resync()], @[cancelquery()] /*semi*/final void reload() { resync(); }
-
private
void
textquery(string q) {
+
private
.pgsql_util.Result
textquery(string q) {
+
.pgsql_util.Result res;
#if 1 foreach (q / ";"; ; string sq)
-
big_query(sq);
+
res =
big_query(sq);
#else // textqueries and portals do not mix well
-
big_query(q, (["_text":1]));
+
res =
big_query(q, (["_text":1]));
#endif
-
+
return res;
} private void resyncdone() { Thread.MutexKey lock = resyncmux->lock(); resynced.signal(); // Allow resync() to continue } private void reset_dbsession() { proxy.statementsinflight->wait_till_drained(); error(1);
-
textquery("ROLLBACK;RESET ALL;CLOSE ALL;DISCARD TEMP");
+
.pgsql_util.Result res
+
=
textquery("ROLLBACK;RESET ALL;CLOSE ALL;DISCARD TEMP");
+
while (res->fetch_row());
resyncdone(); } private void resync_cb() { switch (proxy.backendstatus) { default: resyncdone(); break; case 'T':case 'E': foreach (proxy.prepareds; ; mapping tp) {