diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-26 19:49:48 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-26 19:49:48 -0400 |
commit | 0a5737d9a85a28236a68080d699ef01ac7aed5ee (patch) | |
tree | e4aed4773832c82398ffc2e64d6977166b76a4f1 | |
parent | 9a1c505d321b09a8cc4b7e16549f2023b60c247e (diff) | |
download | sqlalchemy-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.py | 6 |
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() |