From 796f2ab6ae9e37359f6b357a36dba1f8d925b22e Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 27 Oct 2011 12:15:45 +0200 Subject: Comment Oracle boolean literal emulation --- odb/oracle/query.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.1