Skip to content

Commit 6f71226

Browse files
committed
fix 'boolean value not defined' error on AS400
Fixes #180 Signed-off-by: Michael Maltese <michaeljosephmaltese@gmail.com>
1 parent 74b9ab2 commit 6f71226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibm_db_sa/reflection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,12 @@ def get_table_names(self, connection, schema=None, **kw):
654654
current_schema = self.denormalize_name(schema or self.default_schema_name)
655655
systbl = self.sys_tables
656656
if version_info[0] < 3:
657-
query = not sql.select(systbl.c.tabname). \
657+
query = sql.select(systbl.c.tabname). \
658658
where(systbl.c.tabtype == unicode('T')). \
659659
where(systbl.c.tabschema == current_schema). \
660660
order_by(systbl.c.tabname)
661661
else:
662-
query = not sql.select(systbl.c.tabname). \
662+
query = sql.select(systbl.c.tabname). \
663663
where(systbl.c.tabtype == str('T')). \
664664
where(systbl.c.tabschema == current_schema). \
665665
order_by(systbl.c.tabname)

0 commit comments

Comments
 (0)