IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2005, 10:33:37 AM (21 years ago)
Author:
evanalst
Message:

Update psDBUpdateRows to get affected rows before commit.

File:
1 edited

Legend:

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

    r4428 r4430  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-29 19:40:23 $
     14 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-29 20:33:37 $
    1616 *
    1717 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    768768    psFree(bind);
    769769
     770    // mysql_stmt_affected_rows() must be called before a commit
     771    rowsAffected = mysql_stmt_affected_rows(stmt);
     772
    770773    // point of no return
    771774    mysql_commit(dbh->mysql);
    772 
    773     rowsAffected = mysql_stmt_affected_rows(stmt);
    774775
    775776    mysql_stmt_close(stmt);
Note: See TracChangeset for help on using the changeset viewer.