Author: pierre
Date: 2009-05-04 14:11:52 +0200 (Mon, 04 May 2009)
New Revision: 34928

Modified:
   mmbase/trunk/src/org/mmbase/bridge/util/Queries.java
Log:
don't cast value when datepart is specified

Modified: mmbase/trunk/src/org/mmbase/bridge/util/Queries.java
===================================================================
--- mmbase/trunk/src/org/mmbase/bridge/util/Queries.java        2009-05-04 
11:57:28 UTC (rev 34927)
+++ mmbase/trunk/src/org/mmbase/bridge/util/Queries.java        2009-05-04 
12:11:52 UTC (rev 34928)
@@ -469,7 +469,7 @@
 
                 }
             }
-            if (operator != OPERATOR_IN) { // should the elements of the 
collection then not be cast?
+            if (operator != OPERATOR_IN && datePart == -1) { // should the 
elements of the collection then not be cast?
                 value = field.getDataType().castForSearch(value, null, field);
             }
 

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to