You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/10/29 21:52:54 UTC

svn commit: r469010 - /incubator/xap/trunk/src/xap/data/datasource/SimpleDocumentDataSource.js

Author: mturyn
Date: Sun Oct 29 13:52:53 2006
New Revision: 469010

URL: http://svn.apache.org/viewvc?view=rev&rev=469010
Log:
Altered so that scalar results (e.g., a string or number resulting from an XPath function like count() or concat())
will be handled properly.

Modified:
    incubator/xap/trunk/src/xap/data/datasource/SimpleDocumentDataSource.js

Modified: incubator/xap/trunk/src/xap/data/datasource/SimpleDocumentDataSource.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/data/datasource/SimpleDocumentDataSource.js?view=diff&rev=469010&r1=469009&r2=469010
==============================================================================
--- incubator/xap/trunk/src/xap/data/datasource/SimpleDocumentDataSource.js (original)
+++ incubator/xap/trunk/src/xap/data/datasource/SimpleDocumentDataSource.js Sun Oct 29 13:52:53 2006
@@ -214,7 +214,7 @@
 		var exprContext =   new google.ExprContext(documentObject) ;
 		var parsedXPathExpr = google.xpathParse(theQuery) ;
 		var targetNodes = parsedXPathExpr.evaluate( exprContext );
-		theData = targetNodes.nodeSetValue();		
+		theData = targetNodes.value ; // <--array or number or string
 	} catch(ex){
 		throw new xap.util.Exception(
 				"SimpleDocumentDataSource.executeQuery::source: '"