You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Frauke Heyl (JIRA)" <ji...@apache.org> on 2007/01/19 17:55:29 UTC

[jira] Created: (TORQUE-78) Criteria.setIgnoreCase ignores datatype of column

Criteria.setIgnoreCase ignores datatype of column
-------------------------------------------------

                 Key: TORQUE-78
                 URL: https://issues.apache.org/jira/browse/TORQUE-78
             Project: Torque
          Issue Type: Bug
          Components: Runtime
    Affects Versions: 3.3-RC1
         Environment: Windows XP, MS SQL Server
            Reporter: Frauke Heyl
            Priority: Minor


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. 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org