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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:1307:    termlock=0;    if(err && !stringp(err))    throw(err);    };    catch {    unnamedstatement = 0;    termlock = 0;    };    if (err) {    PD("Terminating processloop due to %s\n", describe_backtrace(err)); +  _delayederror = err;    } -  catch(_connectfail(err)); +  destruct(waitforauthready); +  destruct(c);   }      //! Closes the connection to the database, any running queries are   //! terminated instantly.   //!   //! @note   //! This function is PostgreSQL-specific.   /*semi*/final void close() {    throwdelayederror(this);    Thread.MutexKey lock;
pike.git/lib/modules/Sql.pmod/pgsql.pike:1350:    * Warnings will be silently discarded at this point.    */    lastmessage = filter(lastmessage, lambda(string val) {    return has_prefix(val, "ERROR ") || has_prefix(val, "FATAL "); });    if (err || (err = catch(errstring = error(1))))    werror(describe_backtrace(err));    else if (errstring && sizeof(errstring))    werror("%s\n", errstring); // Add missing terminating newline   }    - final void _connectfail(void|mixed err) { -  if (err) { -  PD("Connect failed %O\n", err); -  _delayederror = err; -  } -  destruct(waitforauthready); -  destruct(c); - } -  +    //! For PostgreSQL this function performs the same function as @[resync()].   //!   //! @seealso   //! @[resync()], @[cancelquery()]   /*semi*/final void reload() {    resync();   }      private void reset_dbsession() {    big_query("ROLLBACK");