Revision 914 org.gvsig.oracle/trunk/org.gvsig.oracle/org.gvsig.oracle.provider/src/main/java/org/gvsig/oracle/dal/expressionbuilderformatter/OracleConstant.java
OracleConstant.java | ||
---|---|---|
38 | 38 |
@Override |
39 | 39 |
public String format(ExpressionBuilder.Value function) { |
40 | 40 |
Object value = ((Constant) function).value(); |
41 |
if (value instanceof Geometry) { |
|
41 |
if( value instanceof Boolean ) { |
|
42 |
if( (Boolean)value ) { |
|
43 |
return "(1=1)"; |
|
44 |
} |
|
45 |
return "(1<>1)"; |
|
46 |
} else if (value instanceof Geometry) { |
|
42 | 47 |
Geometry geom = (Geometry) value; //function; |
43 | 48 |
try { |
44 | 49 |
switch (this.builder.geometry_support_type()) { |
Also available in: Unified diff