db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r374868 - /db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBHypersonicSQL.java
Date Sat, 04 Feb 2006 14:14:54 GMT
Author: tfischer
Date: Sat Feb  4 06:14:50 2006
New Revision: 374868

URL: http://svn.apache.org/viewcvs?rev=374868&view=rev
Log:
Fixed case-insensitive order by for HSQLDB

Modified:
    db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBHypersonicSQL.java

Modified: db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBHypersonicSQL.java
URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBHypersonicSQL.java?rev=374868&r1=374867&r2=374868&view=diff
==============================================================================
--- db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBHypersonicSQL.java (original)
+++ db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBHypersonicSQL.java Sat Feb
 4 06:14:50 2006
@@ -69,6 +69,14 @@
     }
 
     /**
+     * @see org.apache.torque.adapter.DB#ignoreCaseInOrderBy(String)
+     */
+    public String ignoreCaseInOrderBy(String in)
+    {
+        return "CAST(" + in + " AS VARCHAR_IGNORECASE)";
+    }
+
+    /**
      * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
      */
     public String getIDMethodSQL(Object obj)



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


Mime
View raw message