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

Bugs in Torque-44 patch / Test-project fixes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.3
    • 3.3
    • Generator, Test Project
    • None

    Description

      This patch fixes several things:

      First, it fixes some bugs in the Torque-44 patch that support the
      torque.deprecated.uppercasePeer property. There are some mistakes in
      it that cause invalid/unusable object to be created.

      Next, it fixes a problem with the test-schema.xml schema and MySQL 4.0.
      A column was defined as Varchar and a length of 2000. This was illegal
      in MySQL 4.0, so the column has been redefined as LONGVARCHAR.

      Finally, it updates a couple of the Test-Project test cases to
      support both types of Peer names.

      Files specific changes:

      MapBuilder.vm:

      Velocity logical expression was ! value and needed to be value.

      Peer.vm

      If uppercase column names was desired, the string value for the
      name would have a } tacked on the end.

      test-schema.xml

      Changed type="Varchar" size="2000" to type="longvarchar" size="2000"

      DatabaseMapTest.java

      Checks for upper case column names if mixed case not found.

      OMByNameMethodsText.java

      Uses Type*PEER column names to test with rather than hard coded names.

      Attachments

        1. Torque-64.zip
          122 kB
          CG Monroe

        Activity

          People

            tfischer Thomas Fox
            monroe CG Monroe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: