Changeset 33763
- Timestamp:
- Apr 11, 2012, 1:36:57 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/objectbatch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/objectbatch.py
r33760 r33763 81 81 self.scratchDb.makeColumnUnique("Object", "objID") 82 82 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 `` 84 84 self.scratchDb.execute("ALTER TABLE Object CHANGE dec_ `dec` double") 85 85 … … 162 162 self.logger.infoPair("Populating", "ObjectCalColor") 163 163 self.logger.infoPair("Inserting objects from", "cpt file") 164 165 # note `` around dec here, as this is a reserved word in MySQL 164 166 sql = "INSERT IGNORE INTO Object (\ 165 167 objID \ 166 168 ,ippObjID \ 167 169 ,objInfoFlag \ 170 ,varFlag \ 168 171 ,surveyID \ 169 172 ,ra \ … … 178 181 ,CAT_ID*1000000000 + OBJ_ID \ 179 182 ,FLAGS \ 183 ,0 \ 180 184 ," + str(self.surveyID) + " \ 181 185 ,RA \
Note:
See TracChangeset
for help on using the changeset viewer.
