Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-2453

rename key names which are reserved SQL words

    XMLWordPrintable

    Details

      Description

      PEB has two keywords fields ((ON) which are reserved SQL words:

                     Key('ledperiod',
                            Int(name='Now', units='uS'),
                            Int(name='On', units='uS'),
                            Int(name='Flash', units='uS'),
                         help='PFI Ebox LED peroid'),
                     Key('dutycycle',
                            Float(name='Now', units='%'),
                            Float(name='On', units='%'),
                            Float(name='Flash', units='%'),
                         help='PFI Ebox LED dutycycle'),
      

      Those should be renamed. Why did this work before? Probably some postgresql or sqlalchemy upgrade made the conflict more obvious.

        Attachments

          Activity

            People

            • Assignee:
              cloomis cloomis
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: