IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28180


Ignore:
Timestamp:
Jun 1, 2010, 2:27:13 PM (16 years ago)
Author:
heather
Message:

fixing up some stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/haf_branches/ipp.20100512/ippTools/src/addtool.c

    r28177 r28180  
    12451245  }
    12461246 
    1247   // since there is only one exp per 'new' set mindvodbRun.state = 'merging'
    1248  
    1249   psString query2 = NULL ;
    1250   psStringAppend(&query2, "UPDATE minidvodbRun SET state = 'merging' WHERE minidvodb_id = %'" PRIu64, row->minidvodb_id);
    1251        
    1252   if (!p_psDBRunQuery(config->dbh, query2)) {
    1253     // rollback
    1254     if (!psDBRollback(config->dbh)) {
    1255       psError(PS_ERR_UNKNOWN, false, "database error");
    1256     }
    1257     psError(PS_ERR_UNKNOWN, false, "database error");
    1258     psFree(query2);
    1259     return false;
    1260   }
    1261  
    12621247
    12631248
     
    13171302  }
    13181303  //   
    1319  
    1320  
    1321   psFree(query4);
     1304psFree(query4);
     1305
     1306
     1307
     1308// since there is only one exp per 'new' set mindvodbRun.state = 'merged'
     1309 
     1310  psString query2 = NULL ;
     1311  psStringAppend(&query2, "UPDATE minidvodbRun SET state = 'merged' WHERE minidvodb_id = %'" PRIu64, row->minidvodb_id);
     1312       
     1313  if (!p_psDBRunQuery(config->dbh, query2)) {
     1314    // rollback
     1315    if (!psDBRollback(config->dbh)) {
     1316      psError(PS_ERR_UNKNOWN, false, "database error");
     1317    }
     1318    psError(PS_ERR_UNKNOWN, false, "database error");
     1319    psFree(query2);
     1320    return false;
     1321  }
     1322 
     1323
     1324
     1325
     1326
     1327 
     1328 
     1329 
    13221330  psFree(row);
    13231331  psFree(pendingRow);
Note: See TracChangeset for help on using the changeset viewer.