Strabon

changeset 198:b0891a609ae3

fixed bug in MoneDBEvaluation.evaluate about set query parameters
author Konstantina Mpereta <grad1110@di.uoa.gr>
date Thu May 24 19:10:34 2012 +0300 (2012-05-24)
parents a92eae721a40
children d7b2fb010f7a
files generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java monetdb/src/main/java/org/openrdf/sail/monetdb/evaluation/MonetDBEvaluation.java runtime/src/test/java/eu/earthobservatory/runtime/monetdb/JoinTests.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java	Thu May 24 14:43:15 2012 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java	Thu May 24 19:10:34 2012 +0300
     1.3 @@ -112,7 +112,7 @@
     1.4  	{
     1.5  		
     1.6  		/// debug
     1.7 -		for(int i=1; i<12;i++) {
     1.8 +		/*for(int i=1; i<12;i++) {
     1.9  			Object o = rs.getObject(i);
    1.10  			if (o instanceof byte[] ) {
    1.11  				byte[] label = rs.getBytes(i);
    1.12 @@ -128,7 +128,7 @@
    1.13  			}  
    1.14  			else 
    1.15  				System.out.println(i+": "+rs.getObject(i));
    1.16 -		}
    1.17 +		}*/
    1.18  		///
    1.19  
    1.20  		QueryBindingSet result = new QueryBindingSet(bindings);
     2.1 --- a/monetdb/src/main/java/org/openrdf/sail/monetdb/evaluation/MonetDBEvaluation.java	Thu May 24 14:43:15 2012 +0300
     2.2 +++ b/monetdb/src/main/java/org/openrdf/sail/monetdb/evaluation/MonetDBEvaluation.java	Thu May 24 19:10:34 2012 +0300
     2.3 @@ -68,7 +68,7 @@
     2.4  					if ( o instanceof String ) {
     2.5  						stmt.setString(++p, (String)o); // TODO this must be extended with all types 
     2.6  					}
     2.7 -					if ( o instanceof Double ){
     2.8 +					else if ( o instanceof Double ){
     2.9  						stmt.setDouble(++p, (Double)o); // TODO this must be extended with all types
    2.10  					}
    2.11  					else {
     3.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/JoinTests.java	Thu May 24 14:43:15 2012 +0300
     3.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/JoinTests.java	Thu May 24 19:10:34 2012 +0300
     3.3 @@ -20,9 +20,9 @@
     3.4  public class JoinTests extends eu.earthobservatory.runtime.generaldb.JoinTests {
     3.5  
     3.6  	@BeforeClass
     3.7 -	public static void beforeClass(String inputfile) throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
     3.8 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
     3.9  	{
    3.10 -		strabon = TemplateTests.beforeClass("/join-tests-srid");
    3.11 +		strabon = TemplateTests.beforeClass("/join-tests-srid.nt");
    3.12  	}
    3.13  	
    3.14  	@AfterClass