Fix for an Issue #202

This commit is contained in:
Miroslav Stampar
2012-10-15 12:24:30 +02:00
parent ed2d163269
commit e440b096c5
3 changed files with 5 additions and 3 deletions

View File

@@ -823,7 +823,7 @@ class Agent:
caseExpression = expression
if Backend.getIdentifiedDbms() is not None and hasattr(queries[Backend.getIdentifiedDbms()], "case"):
if Backend.getIdentifiedDbms() is not None:
caseExpression = queries[Backend.getIdentifiedDbms()].case.query % expression
if "(IIF" not in caseExpression and Backend.getIdentifiedDbms() in FROM_DUMMY_TABLE and not caseExpression.upper().endswith(FROM_DUMMY_TABLE[Backend.getIdentifiedDbms()]):