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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:522:       //! @seealso    //! @[Sql.sql_result()->num_fields()]    /*semi*/final int num_fields() {    if(!datarowtypes)    waitfordescribe();    trydelayederror();    return sizeof(datarowtypes);    }    +  //! @note +  //! This method returns the number of rows already received from +  //! the database for the current query. Note that this number +  //! can still increase between subsequent calls if the results from +  //! the query are not complete yet. This function is only guaranteed to +  //! return the correct count after EOF has been reached.    //! @seealso    //! @[Sql.sql_result()->num_rows()]    /*semi*/final int num_rows() {    trydelayederror();    return rowsreceived;    }       private inline void trydelayederror() {    if(_delayederror)    throwdelayederror(this);