clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject [1/2] git commit: CLEREZZA-936: Use column name to detect ASK response.
Date Mon, 04 Aug 2014 16:38:43 GMT
Repository: clerezza
Updated Branches:
  refs/heads/master 854b72f14 -> 86885e800


CLEREZZA-936: Use column name to detect ASK response.


Project: http://git-wip-us.apache.org/repos/asf/clerezza/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza/commit/95a9e7e0
Tree: http://git-wip-us.apache.org/repos/asf/clerezza/tree/95a9e7e0
Diff: http://git-wip-us.apache.org/repos/asf/clerezza/diff/95a9e7e0

Branch: refs/heads/master
Commit: 95a9e7e0451305cb7a01ad7b41af71c7e5ac6934
Parents: 317dfc0
Author: Minto van der Sluis <misl@apache.org>
Authored: Mon Aug 4 18:37:35 2014 +0200
Committer: Minto van der Sluis <misl@apache.org>
Committed: Mon Aug 4 18:37:35 2014 +0200

----------------------------------------------------------------------
 .../clerezza/rdf/virtuoso/storage/access/DataAccess.java      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/95a9e7e0/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
----------------------------------------------------------------------
diff --git a/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
b/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
index 56fd298..1af24a4 100644
--- a/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
+++ b/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
@@ -108,6 +108,8 @@ public class DataAccess {
 	private final static UriRef XMLLiteral = new UriRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral");
 	private final static UriRef XMLLiteralShadowed = new UriRef("urn:x-clerezza:rdf#XMLLiteral");
 	
+	private final static String ASK_COLUMNNAME = "__ask_retval";  
+	
 	/**
 	 * Bidirectional map for managing the conversion from virtuoso blank nodes
 	 * (strings) to clerezza blank nodes and vice versa.
@@ -955,9 +957,8 @@ public class DataAccess {
 			rs = st.getResultSet();
 			// ASK :: Boolean
 			if (rs.getMetaData().getColumnCount() == 1
-					&& rs.getMetaData().getColumnType(1) == 4) {
-//				rs.next();
-//				returnThis = rs.getBoolean(1);
+			    && rs.getMetaData().getColumnType(1) == 4
+					&& ASK_COLUMNNAME.equals( rs.getMetaData().getColumnName( 1 )) ) {
 				if(rs.next()){
 					returnThis = rs.getBoolean(1);
 				}else{


Mime
View raw message