Skip to content

Commit e95a805

Browse files
authored
Fix boolean type not recognized warning (#140)
* Fix foreign key reflection when there are tables with the same name in different schemas Signed-off-by: Xnot <28331593+Xnot@users.noreply.github.com> * Fix boolean type not recognized warning Signed-off-by: Xnot <28331593+Xnot@users.noreply.github.com>
1 parent 2a0fe78 commit e95a805

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ibm_db_sa/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ def process(value):
154154
return process
155155

156156

157+
class BOOLEAN(sa_types.Boolean):
158+
__visit_name__ = 'BOOLEAN'
159+
160+
157161
class DOUBLE(sa_types.Numeric):
158162
__visit_name__ = 'DOUBLE'
159163

@@ -190,6 +194,7 @@ class XML(sa_types.Text):
190194
}
191195

192196
ischema_names = {
197+
'BOOLEAN': BOOLEAN,
193198
'BLOB': BLOB,
194199
'CHAR': CHAR,
195200
'CHARACTER': CHAR,

0 commit comments

Comments
 (0)