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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:700:    syncparse = _syncparse;    gottimeout = _pgsqlsess->cancelquery;    c->runningportals[this] = 1;    transtype = _transtype;    }       //! Returns the command-complete status for this query.    //!    //! @seealso    //! @[affected_rows()] -  //! -  //! @note -  //! This function is PostgreSQL-specific. +     /*semi*/final string status_command_complete() {    return statuscmdcomplete;    }       //! Returns the number of affected rows by this query.    //!    //! @seealso    //! @[status_command_complete()] -  //! -  //! @note -  //! This function is PostgreSQL-specific. +     /*semi*/final int affected_rows() {    int rows;    if (statuscmdcomplete)    sscanf(statuscmdcomplete, "%*s %d", rows);    return rows;    }       final void _storetiming() {    if (_tprepared) {    _tprepared.trun = gethrtime() - _tprepared.trunstart;