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

Generator does not generate foreign key constraints for Interbase/Firebird

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.3
    • Generator
    • None

    Description

      The generator does not generate foreign key constraints for Interbase/Firebird. This could probably be easily fixed by adding a file foreignkey.vm to the sql/base/interbase directory in the templates jar (torque-gen-templates-3.2.jar) containing this:

      #foreach ($fk in $table.ForeignKeys)
      FOREIGN KEY ($fk.LocalColumnNames) REFERENCES $fk.ForeignTableName ($fk.ForeignColumnNames),
      #end

      Attachments

        Activity

          People

            tfischer Thomas Fox
            friedj Joerg Friedrich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: