Changeset 38995 for trunk/ippToPsps/jython/dvo.py
- Timestamp:
- Oct 28, 2015, 8:29:33 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r38990 r38995 590 590 ''' 591 591 def importPhotcodes(self, path, tableName): 592 if True:592 if self.config.useOhanaMYSQLtoFITS: 593 593 self.importPhotcodesOhana(path,tableName) 594 594 else: … … 607 607 # table = stilts.tpipe(table, cmd='addcol -after TYPE TYPE_AS_INT "TYPE + 0"') 608 608 609 self.scratchDb.loadFITStoMYSQL (path, tableName) 609 self.scratchDb.loadFITStoMYSQL (path, "-tablename " + tableName) 610 611 sql = "ALTER TABLE " + tableName + " ADD COLUMN TYPE_AS_INT INT AFTER TYPE" 612 self.scratchDb.execute(sql) 613 614 sql = "UPDATE " + tableName + " SET TYPE_AS_INT = ascii(TYPE)" 615 self.scratchDb.execute(sql) 610 616 611 617 self.logger.debugPair("Finished importing", tableName)
Note:
See TracChangeset
for help on using the changeset viewer.
