pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:882:    pgsqlsess->_waittocommit++;    PD("Commit waiting for portals to finish\n");    catch(PT(pgsqlsess->_readyforcommit->wait(lock)));    pgsqlsess->_waittocommit--;    }    }    lock=0;    PD("Bind portal %O statement %O\n",_portalname,_preparedname);    _fetchlimit=pgsqlsess->_fetchlimit;    _openportal(); -  conxion bindbuffer=c->start(1); +  conxion bindbuffer=c->start();    _unnamedstatementkey=0;    bindbuffer->add_int8('B')->add_hstring(plugbuffer,4,4);    if(!_tprepared && sizeof(_preparedname))    closestatement(bindbuffer,_preparedname);    _sendexecute(_fetchlimit    && !(cachealways[_query]    || sizeof(_query)>=MINPREPARELENGTH &&    execfetchlimit->match(_query))    && _fetchlimit,bindbuffer);    }
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1012:    lock=0;    }    }       final void _releasesession(void|string statusccomplete) {    c->closecallbacks-=(<destroy>);    if(statusccomplete && !statuscmdcomplete)    statuscmdcomplete=statusccomplete;    inflight=0;    catch { -  conxion plugbuffer=c->start(1); +  conxion plugbuffer=c->start();    plugbuffer->sendcmd(_closeportal(plugbuffer));    };    _state=CLOSED;    datarows->write(1); // Signal EOF    releaseconditions();    }       protected void destroy() {    catch { // inside destructors, exceptions don't work    _releasesession();