IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34639 for trunk


Ignore:
Timestamp:
Nov 1, 2012, 7:43:41 AM (14 years ago)
Author:
bills
Message:

mask out of range SecFiltFlags to avoid overflow into SMALLINT Object.[grizy]Flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/objectbatch.py

    r34630 r34639  
    115115
    116116            filterID = self.scratchDb.getFilterID(filter[1])
     117
     118            # NOTE: mask of cps.FLAGS is required to insure that it fits in Object.{grizy}Flags (which is 16 bits)
     119            # DVO SecfiltFlags uses bit 24 (0x01 0000) which is out of range
    117120
    118121            sql = "UPDATE Object JOIN \
     
    130133                   ," + filter[1] + "20pct = MAG_20/1000 \
    131134                   ," + filter[1] + "80pct = MAG_80/1000 \
    132                    ," + filter[1] + "Flags = FLAGS  \
     135                   ," + filter[1] + "Flags = (0x7fff & FLAGS)  \
    133136                   ," + filter[1] + "StackDetectID = (10 * STACK_DETECT_ID) + " + str(filterID)
    134137
Note: See TracChangeset for help on using the changeset viewer.