IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6174


Ignore:
Timestamp:
Jan 22, 2006, 1:11:01 AM (20 years ago)
Author:
magnier
Message:

added patch from josh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_b1/psLib/src/db/psDB.c

    r6159 r6174  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.44.16.2 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-01-22 07:05:43 $
     14 *  @version $Revision: 1.44.16.3 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-01-22 11:11:01 $
    1616 *
    1717 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    308308    // Get number of rows returned in result
    309309    rowCount = mysql_num_rows(result);
     310    // XXX has mysql's semantics changed?  If this is zero then why was a
     311    // result set returned?
     312    if (!rowCount) {
     313        mysql_free_result(result);
     314        return NULL;
     315    }
    310316
    311317    // pre-allocate enough elements to hold the complete result set
     
    476482
    477483    rowCount = mysql_num_rows(result);
     484    // XXX has mysql's semantics changed?  If this is zero then why was a
     485    // result set returned?
     486    if (rowCount == 0) {
     487        mysql_free_result(result);
     488        return NULL;
     489    }
    478490
    479491    // pre-allocate enough elements to hold the complete result set
Note: See TracChangeset for help on using the changeset viewer.