IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 2, 2006, 4:35:37 PM (20 years ago)
Author:
Paul Price
Message:

Adding patch from Josh, which adds psDBLastInsertId

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r6914 r7050  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-04-20 02:22:28 $
     14 *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-05-03 02:35:37 $
    1616 *
    1717 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    883883
    884884    return rows;
     885}
     886
     887long psDBLastInsertID(psDB *dbh)
     888{
     889    // XXX return type is actually my_ulonglong - should the return be psU64?
     890    return (long)mysql_insert_id(dbh->mysql);
    885891}
    886892
Note: See TracChangeset for help on using the changeset viewer.