jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1137634 - /jackrabbit/branches/2.2/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/sql2/QOMFormatter.java
Date Mon, 20 Jun 2011 14:08:10 GMT
Author: thomasm
Date: Mon Jun 20 14:08:10 2011
New Revision: 1137634

URL: http://svn.apache.org/viewvc?rev=1137634&view=rev
Log:
JCR-2996: QOM to SQL2 doesn't cast numeric literals

Modified:
    jackrabbit/branches/2.2/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/sql2/QOMFormatter.java

Modified: jackrabbit/branches/2.2/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/sql2/QOMFormatter.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.2/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/sql2/QOMFormatter.java?rev=1137634&r1=1137633&r2=1137634&view=diff
==============================================================================
--- jackrabbit/branches/2.2/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/sql2/QOMFormatter.java
(original)
+++ jackrabbit/branches/2.2/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/sql2/QOMFormatter.java
Mon Jun 20 14:08:10 2011
@@ -234,13 +234,13 @@ public class QOMFormatter implements Que
                 appendCastLiteral(v.getString(), "DATE");
                 break;
             case PropertyType.DECIMAL:
-                append(v.getString());
+                appendCastLiteral(v.getString(), "DECIMAL");
                 break;
             case PropertyType.DOUBLE:
-                append(v.getString());
+                appendCastLiteral(v.getString(), "DOUBLE");
                 break;
             case PropertyType.LONG:
-                append(v.getString());
+                appendCastLiteral(v.getString(), "LONG");
                 break;
             case PropertyType.NAME:
                 appendCastLiteral(v.getString(), "NAME");



Mime
View raw message