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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1053:    _state=CLOSING;    break;    case COPYINPROGRESS:    PD("CopyDone\n");    plugbuffer->add("c\0\0\0\4");    case COMMITTED:    case BOUND:    _state=CLOSING;    lock=0;    PD("Close portal %O\n",_portalname); -  if(sizeof(_portalname)) { +  if (_portalname && sizeof(_portalname)) {    plugbuffer->add_int8('C')->add_hstring(({'P',_portalname,0}),4,4);    retval=FLUSHSEND;    } else    _unnamedportalkey=0;    Thread.MutexKey lockc=pgsqlsess->_shortmux->lock();    if(!--pgsqlsess->_portalsinflight) {    if(!pgsqlsess->_waittocommit && !plugbuffer->stashcount)    /*    * stashcount will be non-zero if a parse request has been queued    * before the close was initiated.