wam 2002/06/21 06:26:25
Modified: src/share/org/apache/slide/search/basic BasicQueryImpl.java
Log:
provide the propertyProvider
Revision Changes Path
1.4 +9 -5
jakarta-slide/src/share/org/apache/slide/search/basic/BasicQueryImpl.java
Index: BasicQueryImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/search/basic/BasicQueryImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BasicQueryImpl.java 19 Jun 2002 11:00:11 -0000 1.3
+++ BasicQueryImpl.java 21 Jun 2002 13:26:25 -0000 1.4
@@ -188,6 +188,10 @@
// <where> is not mandatory
if (whereElement != null) {
List expressionList = whereElement.getChildren();
+ if (expressionList.size() != 1) {
+ throw new BadQueryException ("where must have exactly one nested
element");
+ }
+
Element whereWithoutNot =
new
NotNormalizer().getQueryWithoutNotExpression((Element)expressionList.get (0));
rootExpression = expressionCompiler.compile(whereWithoutNot);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>