Ignore:
Timestamp:
09/05/08 15:41:49 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r9129 r9135  
    365365   query=$query" where "
    366366#   query=$query" where $primary='$primvar'"
     367   if [ "$s" = "" ]
     368   then
     369      s=0
     370   fi
    367371   for (( i=0 ; i < ${#prims[@]} ; i++ ))
    368372   do
    369373      if [ $i -lt `expr ${#prims[@]} - 1` ]
    370374      then
    371          query=$query" ${prims[$i]}='${primaries[$s+$s+$i]}' and "
     375         query=$query" ${prims[$i]}='${primaries[$s*${#prims[@]}+$i]}' and "
    372376      else
    373          query=$query" ${prims[$i]}='${primaries[$s+$s+$i]}' "
     377         query=$query" ${prims[$i]}='${primaries[$s*${#prims[@]}+$i]}' "
    374378      fi
    375379   done
Note: See TracChangeset for help on using the changeset viewer.