Strabon

changeset 1367:87245de36992

fixed bug #53
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Sep 19 21:54:15 2014 +0300 (2014-09-19)
parents 9330425ec8b1
children da0922e39968
files generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/base/UnaryGeneralDBOperator.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/base/UnaryGeneralDBOperator.java	Fri Sep 19 14:35:30 2014 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/base/UnaryGeneralDBOperator.java	Fri Sep 19 21:54:15 2014 +0300
     1.3 @@ -9,15 +9,19 @@
     1.4  import org.openrdf.query.algebra.QueryModelVisitor;
     1.5  import org.openrdf.query.algebra.helpers.QueryModelTreePrinter;
     1.6  import org.openrdf.sail.generaldb.optimizers.GeneralDBSqlConstantOptimizer;
     1.7 +import org.slf4j.Logger;
     1.8 +import org.slf4j.LoggerFactory;
     1.9  
    1.10  /**
    1.11   * An SQL operator with one argument.
    1.12   * 
    1.13 + * @author Charalampos Nikolaou <charnik@di.uoa.gr>
    1.14   * @author James Leigh
    1.15 - * 
    1.16   */
    1.17  public abstract class UnaryGeneralDBOperator extends GeneralDBQueryModelNodeBase implements GeneralDBSqlExpr {
    1.18  
    1.19 +	private static Logger logger = LoggerFactory.getLogger(org.openrdf.sail.generaldb.algebra.base.UnaryGeneralDBOperator.class);
    1.20 +
    1.21  	private GeneralDBSqlExpr arg;
    1.22  
    1.23  	public UnaryGeneralDBOperator() {
    1.24 @@ -51,7 +55,10 @@
    1.25  			setArg((GeneralDBSqlExpr)replacement);
    1.26  		}
    1.27  		else {
    1.28 -			super.replaceChildNode(current, replacement);
    1.29 +			if (logger.isWarnEnabled()) {
    1.30 +				logger.warn("[Strabon.GeneralDB] The next call will blow things up. I'll try to suppress it, but notify me in case anything goes wrong.");
    1.31 +			}
    1.32 +			//super.replaceChildNode(current, replacement);
    1.33  		}
    1.34  	}
    1.35