aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/oracle/query.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/oracle/query.cxx b/odb/oracle/query.cxx
index 4a6642b..60c83d8 100644
--- a/odb/oracle/query.cxx
+++ b/odb/oracle/query.cxx
@@ -289,6 +289,10 @@ namespace odb
if (last != ' ' && last != '(')
r += ' ';
+ // Oracle does not have TRUE and FALSE boolean literals (these
+ // are available in PL/SQL). Boolean values seem to only be
+ // created as the result of boolean expressions.
+ //
r += i->bool_part ? "1 = 1" : "1 = 0";
break;
}