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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:1953:    } else {    if(plugbuffer)    plugbuffer->sendcmd(KEEP);   #ifdef PG_STATS    skippeddescribe++;   #endif    portal->_setrowdesc(tp.datarowdesc,tp.datarowtypes);    }    if((portal._tprepared=tp) && tp.datatypeoid) {    mixed e=catch(portal->_preparebind(tp.datatypeoid)); -  if(e && !portal._delayederror) +  if (e && !portal._delayederror) { +  portal._unnamedstatementkey = 0; // Release early, release often    throw(e);    }    } -  +  if (!unnamedstatement) +  portal._unnamedstatementkey = 0 // Cover for a destruct race +  }    throwdelayederror(portal);    return portal;   }      //! This is an alias for @[big_query()], since @[big_query()] already supports   //! streaming of multiple simultaneous queries through the same connection.   //!   //! @seealso   //! @[big_query()], @[big_typed_query()], @[Sql.Sql], @[Sql.sql_result]   /*semi*/final .pgsql_util.sql_result streaming_query(string q,