Uploaded image for project: 'Empire-DB'
  1. Empire-DB
  2. EMPIREDB-285

When dropping tables with sequences, the sequence name is not escaped correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • empire-db-2.5.0
    • Core
    • None

    Description

      Samir Hadzic reported the following bug:

       I'm currently migrating my Empire-db from 2.1.0 (2011) to the latest.

       If I'm not mistaken, the code added is not right for HSqlDDLGenerator.

       

      If I'm trying to drop a table, the generated code will be 

      DROP SEQUENCE FOO_SEQUENCE.MSG_ID;

      But executing that on HSQL is not working. Instead it's expecting:

      DROP SEQUENCE "FOO_SEQUENCE.MSG_ID"

      Therefore, I'm wondering if a call to appendElementName should be used instead of directly appending the sequence name since I believe the appendElementName method is taking care of the quotes.

      Attachments

        Issue Links

          Activity

            People

              doebele Rainer Döbele
              doebele Rainer Döbele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m