Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 34630)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 34631)
@@ -648,4 +648,10 @@
             if not self.getIDsFromDVO(): return False
 
+        # dec is reserved in MySQL, so STILTS replaces if with dec_, which is not the name of 
+        # the column in PSPS
+        self.scratchDb.execute("ALTER TABLE DetectionCalib CHANGE dec_ `dec` double")
+
+
+
         return True
 
Index: trunk/ippToPsps/jython/stackbatch.py
===================================================================
--- trunk/ippToPsps/jython/stackbatch.py	(revision 34630)
+++ trunk/ippToPsps/jython/stackbatch.py	(revision 34631)
@@ -664,4 +664,10 @@
         self.scratchDb.createIndex("StackModelFit", "ippDetectID")
 
+        # dec is reserved in MySQL, so STILTS replaces if with dec_, which is not the name of 
+        # the column in PSPS
+        self.scratchDb.execute("ALTER TABLE StackDetectionCalib CHANGE dec_ `dec` double")
+
+
+
         return True
 
