aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-27 12:15:45 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-27 12:15:45 +0200
commit796f2ab6ae9e37359f6b357a36dba1f8d925b22e (patch)
tree7489b20acd70881588e4f653208b0a1d3f883461
parent4376b0e4c13286dde86e79d9a0fffaaa8d026e55 (diff)
Comment Oracle boolean literal emulation
-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;
}