Revision 47319 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/spi/JDBCHelperBase.java
JDBCHelperBase.java | ||
---|---|---|
328 | 328 |
Code.Callable caller = (Code.Callable) code1; |
329 | 329 |
if (!supportCaller(caller)) { |
330 | 330 |
isCompatible.setValue(false); |
331 |
LOGGER.debug("Expression not SQL compatible, use '"+caller.name()+"' ("+sql+")."); |
|
331 | 332 |
throw new VisitCanceledException(); |
332 | 333 |
} |
333 | 334 |
break; |
334 | 335 |
case Code.METHOD: |
335 | 336 |
isCompatible.setValue(false); |
337 |
LOGGER.debug("Expression not SQL compatible, use objects methods ("+sql+")."); |
|
336 | 338 |
throw new VisitCanceledException(); |
337 | 339 |
case Code.IDENTIFIER: |
338 | 340 |
Code.Identifier identifier = (Code.Identifier) code1; |
... | ... | |
342 | 344 |
if (attrdesc.isComputed()) { |
343 | 345 |
FeatureAttributeEmulator emulator = attrdesc.getFeatureAttributeEmulator(); |
344 | 346 |
if (!(emulator instanceof FeatureAttributeEmulatorExpression)) { |
347 |
LOGGER.debug("Expression not SQL compatible, use calculated field '"+attrdesc.getName()+"' ("+sql+")."); |
|
345 | 348 |
isCompatible.setValue(false); |
346 | 349 |
throw new VisitCanceledException(); |
347 | 350 |
} |
348 | 351 |
Expression expr = ((FeatureAttributeEmulatorExpression) emulator).getExpression(); |
349 | 352 |
if (!supportExpression(type, expr.getPhrase())) { |
353 |
LOGGER.debug("Expression not SQL compatible, use calculated field '"+attrdesc.getName()+"' ("+expr.getPhrase()+"/"+sql+")."); |
|
350 | 354 |
isCompatible.setValue(false); |
351 | 355 |
throw new VisitCanceledException(); |
352 | 356 |
} |
Also available in: Unified diff