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

qualified table names cause wrong sql to be created

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta1
    • Fix Version/s: 4.0
    • Component/s: Runtime
    • Labels:
      None

      Description

      If I use the table name "bookstore.book" and then try to telete all booksby
      Criteria criteria = new Criteria();
      criteria.where(BookPeer.BOOK_ID, (Long) null, Criteria.NOT_EQUAL);
      BookPeer.doDelete(criteria);
      the generated sql will be
      DELETE FROM bookstore.book, book WHERE book.book_id IS NOT NULL
      whereas it should be
      DELETE FROM bookstore.book WHERE book.book_id IS NOT NULL

      Also other places should be checked for similar errors.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tfischer Thomas Fox
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: