oracle doesn't have TRUE/FALSE, put 1/0 here, see how that goes

This commit is contained in:
Mike Bayer
2013-04-26 19:49:48 -04:00
parent 9a1c505d32
commit 0a5737d9a8
+6
View File
@@ -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()