Changeset 19209 for trunk/DataCheck


Ignore:
Timestamp:
09/03/18 21:18:23 (6 years ago)
Author:
Daniela Dorner
Message:
fixed bug in setstatus, changed order of processing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r19198 r19209  
    340340   if [ "$sort" = "" ]
    341341   then
    342       query=$query" DESC "
     342      query=$query" ASC "
    343343   else
    344344      query=$query" "$sort
     
    385385   #numproc=`sendquery `#cannot be done with sendquery, because of row counting
    386386   printprocesslog "DEBUG send query "$query
    387    if ! numproc=`mysql --default-file=$sqlrc -s -e " $query " | wc -l`
     387   printprocesslog "BLA "`which mysql`
     388   if ! numproc=`mysql --defaults-file=$sqlrc -s -e " $query " | wc -l`
    388389   then
    389390      printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus, mysqlsetup $sqlrc)"
     
    475476   for otherstep in $othersteps
    476477   do
    477       query=$query", "$otherstep"Status.fStartTime=NULL "
    478       query=$query", "$otherstep"Status.fStopTime=NULL "
     478      query=$query", "$otherstep"Status.fStartTime=IF("$otherstep"Status.fStartTime='1970-01-01 00:00:00', '1970-01-01 00:00:00', NULL) "
     479      query=$query", "$otherstep"Status.fStopTime=IF("$otherstep"Status.fStartTime='1970-01-01 00:00:00', '1970-01-01 00:00:00', NULL) "
    479480      query=$query", "$otherstep"Status.fAvailable=NULL "
    480481      query=$query", "$otherstep"Status.fReturnCode=NULL "
Note: See TracChangeset for help on using the changeset viewer.