Skip to content

Commit bb1fcbd

Browse files
Resolved Boolean renders as smallint (#163)
Signed-off-by: Balram Choudhary <bchoudhary@rocketsoftware.com>
1 parent 7980221 commit bb1fcbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ibm_db_sa/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ def visit_DATETIME(self, type_, **kw):
239239
def visit_SMALLINT(self, type_, **kw):
240240
return "SMALLINT"
241241

242+
def visit_BOOLEAN(self, type_, **kw):
243+
return "BOOLEAN"
244+
242245
def visit_INT(self, type_, **kw):
243246
return "INT"
244247

@@ -311,7 +314,7 @@ def visit_integer(self, type_, **kw):
311314
return self.visit_INT(type_, **kw)
312315

313316
def visit_boolean(self, type_, **kw):
314-
return self.visit_SMALLINT(type_, **kw)
317+
return self.visit_BOOLEAN(type_, **kw)
315318

316319
def visit_float(self, type_, **kw):
317320
return self.visit_FLOAT(type_, **kw)

0 commit comments

Comments
 (0)