summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-04-26 19:49:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-04-26 19:49:48 -0400
commit0a5737d9a85a28236a68080d699ef01ac7aed5ee (patch)
treee4aed4773832c82398ffc2e64d6977166b76a4f1
parent9a1c505d321b09a8cc4b7e16549f2023b60c247e (diff)
downloadsqlalchemy-0a5737d9a85a28236a68080d699ef01ac7aed5ee.tar.gz
oracle doesn't have TRUE/FALSE, put 1/0 here, see how that goes
-rw-r--r--lib/sqlalchemy/dialects/oracle/base.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/oracle/base.py b/lib/sqlalchemy/dialects/oracle/base.py
index e0fa10b4f..831ba5f1b 100644
--- a/lib/sqlalchemy/dialects/oracle/base.py
+++ b/lib/sqlalchemy/dialects/oracle/base.py
@@ -429,6 +429,12 @@ class OracleCompiler(compiler.SQLCompiler):
return "CONTAINS (%s, %s)" % (self.process(binary.left),
self.process(binary.right))
+ def visit_true(self, expr, **kw):
+ return '1'
+
+ def visit_false(self, expr, **kw):
+ return '0'
+
def get_select_hint_text(self, byfroms):
return " ".join(
"/*+ %s */" % text for table, text in byfroms.items()