Strabon

changeset 816:e42e4beeabb7 temporals

fixed bug encountered when projecting a temporal variable that takes part in a temporal join
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Wed Dec 19 17:23:11 2012 +0200 (2012-12-19)
parents d400062a70f6
children 2151e610123d
files generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Tue Dec 18 20:35:02 2012 +0200
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Wed Dec 19 17:23:11 2012 +0200
     1.3 @@ -727,8 +727,6 @@
     1.4  						if(var.isTemporal()) 
     1.5  						{
     1.6  							this.temporalVars.put(var.getIndex()+1,var.getName());
     1.7 -							//no SRID here, a single shift is needed
     1.8 -							index++;
     1.9  						}
    1.10  						query.select(proj.getId());
    1.11  						query.select(proj.getStringValue());
     2.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java	Tue Dec 18 20:35:02 2012 +0200
     2.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/iteration/GeneralDBBindingIteration.java	Wed Dec 19 17:23:11 2012 +0200
     2.3 @@ -205,9 +205,6 @@
     2.4  	protected RdbmsValue createValue(ResultSet rs, int index)
     2.5  	throws SQLException
     2.6  	{
     2.7 -		System.out.println("Object in index "+index+" is: "+ rs.getObject(index).toString());
     2.8 -		System.out.println("Object in index "+ --index+" is: "+ rs.getObject(index).toString());
     2.9 -
    2.10  		Number id = ids.idOf(rs.getLong(index));
    2.11  		if (ids.isLiteral(id)) {
    2.12  			String label = rs.getString(index + 1);