Strabon

changeset 295:ac3e112e7478

Also tested with refinement query of NOA
author Manos Karpathiotakis <mk@di.uoa.gr>
date Tue Jun 19 17:45:02 2012 +0300 (2012-06-19)
parents dc26807e3b3f
children 581e52ae22a0
files generaldb/src/main/java/org/openrdf/sail/generaldb/optimizers/GeneralDBSelectQueryOptimizer.java postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/optimizers/GeneralDBSelectQueryOptimizer.java	Tue Jun 19 17:16:20 2012 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/optimizers/GeneralDBSelectQueryOptimizer.java	Tue Jun 19 17:45:02 2012 +0300
     1.3 @@ -781,6 +781,7 @@
     1.4  				GeneralDBSelectQuery query = (GeneralDBSelectQuery)node.getArg();
     1.5  
     1.6  				ValueExpr condition = null;
     1.7 +//				dup=false;
     1.8  				if(!dup)
     1.9  				{
    1.10  					for (ValueExpr expr : flatten(node.getCondition())) {
     2.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java	Tue Jun 19 17:16:20 2012 +0300
     2.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java	Tue Jun 19 17:45:02 2012 +0300
     2.3 @@ -64,6 +64,7 @@
     2.4  					stmt.setObject(++p, o);
     2.5  				}
     2.6  				Collection<GeneralDBColumnVar> proj = qb.getProjections();
     2.7 +//				System.out.println("In PostGIS Evaluation, query is: \n" + stmt);
     2.8  				GeneralDBBindingIteration result = new PostGISBindingIteration(stmt);
     2.9  				result.setProjections(proj);
    2.10  				result.setBindings(bindings);
    2.11 @@ -72,8 +73,7 @@
    2.12  				//XXX addition
    2.13  				result.setGeoNames(this.geoNames);
    2.14  				result.setConstructIndexesAndNames(this.constructIndexesAndNames);
    2.15 -				//
    2.16 -//				System.out.println("In PostGIS Evaluation, query is: \n" + stmt);
    2.17 +				
    2.18  				if (logger.isDebugEnabled()) {
    2.19  					logger.debug("In PostGIS Evaluation, query is: \n{}", stmt);
    2.20  				}