Skip to content
Snippets Groups Projects
Commit 54674c10 authored by gmantele's avatar gmantele
Browse files

[ADQL] Fix SQL translation of NOT BETWEEN (before it was translated by just...

[ADQL] Fix SQL translation of NOT BETWEEN (before it was translated by just BETWEEN ; NOT was forgotten)
parent 1c1d4cec
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ import adql.query.operand.function.geometry.RegionFunction; ...@@ -162,7 +162,7 @@ import adql.query.operand.function.geometry.RegionFunction;
* </p> * </p>
* *
* @author Gr&eacute;gory Mantelet (ARI) * @author Gr&eacute;gory Mantelet (ARI)
* @version 2.0 (08/2014) * @version 2.0 (09/2014)
* @since 2.0 * @since 2.0
* *
* @see PostgreSQLTranslator * @see PostgreSQLTranslator
...@@ -688,7 +688,7 @@ public abstract class JDBCTranslator implements ADQLTranslator { ...@@ -688,7 +688,7 @@ public abstract class JDBCTranslator implements ADQLTranslator {
@Override @Override
public String translate(Between comp) throws TranslationException{ public String translate(Between comp) throws TranslationException{
return translate(comp.getLeftOperand()) + " BETWEEN " + translate(comp.getMinOperand()) + " AND " + translate(comp.getMaxOperand()); return translate(comp.getLeftOperand()) + " " + comp.getName() + " " + translate(comp.getMinOperand()) + " AND " + translate(comp.getMaxOperand());
} }
@Override @Override
...@@ -703,7 +703,7 @@ public abstract class JDBCTranslator implements ADQLTranslator { ...@@ -703,7 +703,7 @@ public abstract class JDBCTranslator implements ADQLTranslator {
@Override @Override
public String translate(IsNull isNull) throws TranslationException{ public String translate(IsNull isNull) throws TranslationException{
return translate(isNull.getColumn()) + " IS " + (isNull.isNotNull() ? "NOT " : "") + "NULL"; return translate(isNull.getColumn()) + " " + isNull.getName();
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment