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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:590:    return .pgsql_util.local_backend->call_out(f,delay,@args);   }      private int|.pgsql_util.sql_result portal; // state information procmessage   #ifdef PG_DEBUG   private string datarowdebug;   private int datarowdebugcount;   #endif      final void _processloop(.pgsql_util.conxion ci) { -  if(c && (!ci || c!=ci)) // If we are switching or dropping connections -  c->close(); // force a close on the old socket +     if(!this) // Oops, current object already destructed    return; -  +  if(c && (!ci || c!=ci)) // If we are switching or dropping connections +  c->close(); // force a close on the old socket    (c=ci)->socket->set_id(procmessage);    cancelsecret=0;    portal=0;    {    Stdio.Buffer plugbuffer=Stdio.Buffer()->add_int32(PG_PROTOCOL(3,0));    if(user)    plugbuffer->add("user\0",user,0);    if(database)    plugbuffer->add("database\0",database,0);    _options.reconnect=undefinedp(_options.reconnect) || _options.reconnect;