Changeset 28180
- Timestamp:
- Jun 1, 2010, 2:27:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/haf_branches/ipp.20100512/ippTools/src/addtool.c
r28177 r28180 1245 1245 } 1246 1246 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 // rollback1254 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 1262 1247 1263 1248 … … 1317 1302 } 1318 1303 // 1319 1320 1321 psFree(query4); 1304 psFree(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 1322 1330 psFree(row); 1323 1331 psFree(pendingRow);
Note:
See TracChangeset
for help on using the changeset viewer.
