Changeset 7050
- Timestamp:
- May 2, 2006, 4:35:37 PM (20 years ago)
- Location:
- trunk/psLib/src/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.c
r6914 r7050 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.4 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-0 4-20 02:22:28$14 * @version $Revision: 1.49 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-05-03 02:35:37 $ 16 16 * 17 17 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 883 883 884 884 return rows; 885 } 886 887 long 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); 885 891 } 886 892 -
trunk/psLib/src/db/psDB.h
r5136 r7050 10 10 * @author Joshua Hoblitt 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 200 5-09-26 21:13:16$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-05-03 02:35:37 $ 14 14 * 15 15 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 275 275 ); 276 276 277 /** Get the last insert ID 278 * 279 * Returns the value of MySQLs 'LAST_INSERT_ID()' function 280 * 281 * @return long: The last insert ID 282 */ 283 long psDBLastInsertID( 284 psDB *dbh ///< Database handle 285 ); 286 277 287 /// @} 278 288
Note:
See TracChangeset
for help on using the changeset viewer.
