IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 15, 2005, 2:33:32 PM (21 years ago)
Author:
jhoblitt
Message:

add limit param to psDBSelectRows()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/psdb/psDB.c

    r3224 r3234  
    88 *  @author Joshua Hoblitt
    99 *
    10  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-02-15 07:57:53 $
     10 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-02-16 00:33:32 $
    1212 *
    1313 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    341341}
    342342
    343 psArray *psDBSelectRows(psDB *dbh, const char *tableName, psMetadata *where)
     343psArray *psDBSelectRows(psDB *dbh, const char *tableName, psMetadata *where, const psU64 limit)
    344344{
    345345    MYSQL_RES       *result;            // complete db result set
     
    362362    psPtr           data;               // copy of result field
    363363
    364     query = psDBGenerateSelectRowSQL(tableName, NULL, where, 0);
     364    query = psDBGenerateSelectRowSQL(tableName, NULL, where, limit);
    365365    if (!query) {
    366366        return NULL;
     
    580580psArray *psDBDumpRows(psDB *dbh, const char *tableName)
    581581{
    582     return psDBSelectRows(dbh, tableName, NULL);
     582    return psDBSelectRows(dbh, tableName, NULL, 0);
    583583}
    584584
Note: See TracChangeset for help on using the changeset viewer.