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

Criteria.setIgnoreCase ignores datatype of column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3-RC1
    • 4.0-beta1
    • Runtime
    • None
    • Windows XP, MS SQL Server

    Description

      If I call Criteria.setIgnoreCase(true); all columns and values are wrapped with UPPER, no matter wich type they have.
      So for a datetime field I get some statement like:
      select * from TABLE_X where UPPER(X_DATE) = UPPER('20070116 00:00:00')
      which does not work correctly.
      I now have a workaround setting ignore case for all Criterion objects seperately, but still I consider it as a bug, since the type of the column is known when the ignore case flag is evaluated in the build function of class SQLExpression.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fheyl Frauke Heyl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: