Strabon

changeset 170:bab8044ab6d3

Fixed issue with SqlNull and exception thrown when no results exist
author Manos Karpathiotakis <mk@di.uoa.gr>
date Mon May 21 18:08:17 2012 +0300 (2012-05-21)
parents b708f04e2555
children e9332065a3dd
files postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java
line diff
     1.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Fri May 18 15:35:56 2012 +0300
     1.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Mon May 21 18:08:17 2012 +0300
     1.3 @@ -1675,8 +1675,8 @@
     1.4  			{
     1.5  		filter.openBracket();
     1.6  
     1.7 -		boolean check1 = expr.getLeftArg().getClass().getCanonicalName().equals("org.openrdf.sail.monetdb.algebra.GeneralDBSqlNull");
     1.8 -		boolean check2 = expr.getRightArg().getClass().getCanonicalName().equals("org.openrdf.sail.monetdb.algebra.GeneralDBSqlNull");
     1.9 +		boolean check1 = expr.getLeftArg().getClass().getCanonicalName().equals("org.openrdf.sail.generaldb.algebra.GeneralDBSqlNull");
    1.10 +		boolean check2 = expr.getRightArg().getClass().getCanonicalName().equals("org.openrdf.sail.generaldb.algebra.GeneralDBSqlNull");
    1.11  
    1.12  		if(check1)
    1.13  		{
    1.14 @@ -1783,7 +1783,7 @@
    1.15  			throws UnsupportedRdbmsOperatorException
    1.16  			{
    1.17  		filter.openBracket();
    1.18 -		boolean check1 = expr.getLeftArg().getClass().getCanonicalName().equals("org.openrdf.sail.monetdb.algebra.GeneralDBSqlNull");
    1.19 +		boolean check1 = expr.getLeftArg().getClass().getCanonicalName().equals("org.openrdf.sail.generaldb.algebra.GeneralDBSqlNull");
    1.20  		if(check1)
    1.21  		{
    1.22  			this.append((GeneralDBSqlNull)expr.getLeftArg(), filter);
    1.23 @@ -2133,8 +2133,8 @@
    1.24  			throws UnsupportedRdbmsOperatorException
    1.25  			{
    1.26  		filter.openBracket();
    1.27 -
    1.28 -		boolean check1 = expr.getLeftArg().getClass().getCanonicalName().equals("org.openrdf.sail.monetdb.algebra.GeneralDBSqlNull");
    1.29 +		System.out.println(expr.getLeftArg().getClass().getCanonicalName());
    1.30 +		boolean check1 = expr.getLeftArg().getClass().getCanonicalName().equals("org.openrdf.sail.generaldb.algebra.GeneralDBSqlNull");
    1.31  		if(check1)
    1.32  		{
    1.33  			this.append((GeneralDBSqlNull)expr.getLeftArg(), filter);
    1.34 @@ -2168,7 +2168,7 @@
    1.35  				appendMBB((GeneralDBLabelColumn)(expr.getLeftArg()),filter);
    1.36  			}
    1.37  			filter.appendComma();
    1.38 -			boolean check2 = expr.getRightArg().getClass().getCanonicalName().equals("org.openrdf.sail.monetdb.algebra.GeneralDBSqlNull");
    1.39 +			boolean check2 = expr.getRightArg().getClass().getCanonicalName().equals("org.openrdf.sail.generaldb.algebra.GeneralDBSqlNull");
    1.40  			if(check2)
    1.41  			{
    1.42  				this.append((GeneralDBSqlNull)expr.getRightArg(), filter);