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

qualified table names cause wrong sql to be created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-beta1
    • 4.0
    • Runtime
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: