Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-45

Generated SQL is in wrong order when dropping tables on table re-creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1, 3.2
    • 4.0-beta1
    • Generator
    • None
    • java 1.4.2, 1.5. Solaris 10.

    Description

      When the table creation SQL is re-run when the schema contains foreign keys, you will get referential integrity complaints.
      This is because the table drop order means that it tries to drop dependent tables first.
      To fix this, the drop statements should be before all the creates. They should also be in reverse order to the creates.
      A method to be able to obtain the tables in reverse order will be needed to allow the templates to be modified to fix this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joecarter Joe Carter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: