IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3243


Ignore:
Timestamp:
Feb 15, 2005, 4:56:45 PM (21 years ago)
Author:
jhoblitt
Message:

add transactions to psDBDeleteRows()

File:
1 edited

Legend:

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

    r3242 r3243  
    88 *  @author Joshua Hoblitt
    99 *
    10  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-02-16 02:08:33 $
     10 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-02-16 02:56:45 $
    1212 *
    1313 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    692692
    693693    if (!psDBRunQuery(dbh, query)) {
     694        mysql_rollback(dbh->mysql);
     695
    694696        psFree(query);
    695697
     
    704706        return 1;
    705707    }
     708
     709    // point of no return
     710    mysql_commit(dbh->mysql);
    706711
    707712    return (psS64)mysql_affected_rows(dbh->mysql);
Note: See TracChangeset for help on using the changeset viewer.