IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33763


Ignore:
Timestamp:
Apr 11, 2012, 1:36:57 PM (14 years ago)
Author:
rhenders
Message:

using default of 0 for varFlag as stupid PSPS 'null' value of -999 does not fit in a byte

File:
1 edited

Legend:

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

    r33760 r33763  
    8181        self.scratchDb.makeColumnUnique("Object", "objID")
    8282
    83         # dec is reserved in MySQL, so STILTS replaces if with dec_, which PSPS doesn't like. so, force it back again
     83        # dec is reserved in MySQL, so STILTS replaces if with dec_, which PSPS doesn't like. so, force it back again using ``
    8484        self.scratchDb.execute("ALTER TABLE Object CHANGE dec_ `dec` double")
    8585
     
    162162        self.logger.infoPair("Populating", "ObjectCalColor")
    163163        self.logger.infoPair("Inserting objects from", "cpt file")
     164
     165        # note `` around dec here, as this is a reserved word in MySQL
    164166        sql = "INSERT IGNORE INTO Object (\
    165167               objID \
    166168               ,ippObjID \
    167169               ,objInfoFlag \
     170               ,varFlag \
    168171               ,surveyID \
    169172               ,ra \
     
    178181               ,CAT_ID*1000000000 + OBJ_ID \
    179182               ,FLAGS \
     183               ,0 \
    180184               ," + str(self.surveyID) + " \
    181185               ,RA \
Note: See TracChangeset for help on using the changeset viewer.