- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/dettool_processedimfile.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippTools/src
- Property svn:ignore
-
old new 1 *.la 2 *.lo 1 3 .deps 2 4 .gdb_history … … 4 6 Makefile 5 7 Makefile.in 8 addtool 9 caltool 10 camtool 11 chiptool 6 12 config.h 7 13 config.h.in 8 stamp-h1 9 *.la 10 *.lo 14 detselect 15 dettool 16 difftool 17 disttool 18 dqstatstool 19 faketool 20 flatcorr 21 guidetool 22 magicdstool 23 magictool 24 pstamptool 25 pubtool 26 pxadmin 27 pxdata.c 28 pxinject 11 29 pxtoolsErrorCodes.c 12 30 pxtoolsErrorCodes.h 13 pxadmin14 pxinject15 pztool16 31 pzgetexp 17 32 pzgetimfiles 33 pztool 34 receivetool 18 35 regtool 19 guidetool 20 chiptool 21 camtool 36 stacktool 37 stamp-h1 22 38 warptool 23 difftool24 stacktool25 faketool26 dettool27 detselect28 pxdata.c29 magictool30 magicdstool31 caltool32 flatcorr33 pstamptool34 disttool35 receivetool36 37 pubtool
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/ippTools/src/dettool_processedimfile.c
r23688 r27840 34 34 psString query = pxDataGet("dettool_toprocessedimfile.sql"); 35 35 if (!query) { 36 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");36 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 37 37 return false; 38 38 } … … 180 180 psString query = pxDataGet("dettool_processedimfile.sql"); 181 181 if (!query) { 182 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");182 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 183 183 psFree(where); 184 184 return false; … … 267 267 psString query = pxDataGet("dettool_revertprocessedimfile.sql"); 268 268 if (!query) { 269 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");269 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 270 270 return false; 271 271 } … … 298 298 299 299 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 300 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false);301 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false);302 300 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 303 301 304 if (!setProcessedImfileDataState(config, det_id, exp_id, class_id, data_state)) { 305 return false; 306 } 302 psMetadata *where = psMetadataAlloc(); 303 304 PXOPT_COPY_S64(config->args,where,"-det_id", "det_id","=="); 305 PXOPT_COPY_S64(config->args,where,"-exp_id", "exp_id","=="); 306 PXOPT_COPY_STR(config->args,where,"-class_id","class_id","=="); 307 308 if (!setProcessedImfileDataState(config, where, data_state)) { 309 return false; 310 } 311 psFree(where); 307 312 return true; 308 313 } … … 314 319 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 315 320 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 316 321 /* int i; */ 317 322 psMetadata *where = psMetadataAlloc(); 318 323 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); … … 322 327 psString query = pxDataGet("dettool_pendingcleanup_processedimfile.sql"); 323 328 if (!query) { 324 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");329 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 325 330 return false; 326 331 } … … 345 350 return false; 346 351 } 352 /* fprintf(stderr,"DETTOOL:procimfile: %s\n",query); */ 347 353 psFree(query); 348 354 … … 350 356 if (!output) { 351 357 psError(PS_ERR_UNKNOWN, false, "database error"); 358 /* fprintf(stderr,"WTF !output?\n"); */ 352 359 return false; 353 360 } 354 361 if (!psArrayLength(output)) { 355 362 psTrace("dettool", PS_LOG_INFO, "no rows found"); 363 /* fprintf(stderr,"WTF no rows??\n"); */ 356 364 psFree(output); 357 365 return true; … … 359 367 360 368 // negative simple so the default is true 369 /* i = (int) ippdbPrintMetadatas(stdout, output, "detCleanupProcessedImfile", !simple); */ 370 /* fprintf(stderr,">>%d<<\n",i); */ 361 371 if (!ippdbPrintMetadatas(stdout, output, "detCleanupProcessedImfile", !simple)) { 362 372 psError(PS_ERR_UNKNOWN, false, "failed to print array"); … … 364 374 return false; 365 375 } 376 /* fprintf(stderr,"DETTOOL:procimfile: %s\n",output); */ 377 /* psFree(output); */ 366 378 367 379 psFree(output); … … 385 397 psString query = pxDataGet("dettool_donecleanup_processedimfile.sql"); 386 398 if (!query) { 387 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");399 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 388 400 return false; 389 401 }
Note:
See TracChangeset
for help on using the changeset viewer.
