jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r575023 - in /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query: SQLQueryLevel2Test.java XPathQueryLevel2Test.java
Date Wed, 12 Sep 2007 17:43:48 GMT
Author: reschke
Date: Wed Sep 12 10:43:45 2007
New Revision: 575023

URL: http://svn.apache.org/viewvc?rev=575023&view=rev
Log:
JCR-1121: use the proper quote character for phrases in text searches.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLQueryLevel2Test.java
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/XPathQueryLevel2Test.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLQueryLevel2Test.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLQueryLevel2Test.java?rev=575023&r1=575022&r2=575023&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLQueryLevel2Test.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLQueryLevel2Test.java
Wed Sep 12 10:43:45 2007
@@ -134,7 +134,7 @@
         StringBuffer tmp = new StringBuffer("SELECT ");
         tmp.append(escapeIdentifierForSQL(propertyName1));
         tmp.append(" FROM ").append(escapeIdentifierForSQL(testNodeType));
-        tmp.append(" WHERE CONTAINS(., '''quick brown'' -cat')");
+        tmp.append(" WHERE CONTAINS(., '\"quick brown\" -cat')");
         tmp.append(" AND ").append(jcrPath).append(" LIKE '");
         tmp.append(testRoot).append("/%'");
         return new Statement(tmp.toString(), Query.SQL);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/XPathQueryLevel2Test.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/XPathQueryLevel2Test.java?rev=575023&r1=575022&r2=575023&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/XPathQueryLevel2Test.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/XPathQueryLevel2Test.java
Wed Sep 12 10:43:45 2007
@@ -133,7 +133,7 @@
         StringBuffer tmp = new StringBuffer("/");
         tmp.append(jcrRoot).append(testRoot);
         tmp.append("/*[").append(jcrContains);
-        tmp.append("(., \"'quick brown' -cat\")]");
+        tmp.append("(., '\"quick brown\" -cat')]");
         return new Statement(tmp.toString(), Query.XPATH);
     }
 



Mime
View raw message