Fix: pyodbc type not supported for -150 (#12851)

This commit is contained in:
Mayur Singal 2023-08-11 15:32:19 +05:30 committed by GitHub
parent 8776069940
commit a17ac7bcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ def get_columns(
identity_cols.c.is_identity,
identity_cols.c.seed_value,
identity_cols.c.increment_value,
extended_properties.c.value,
sql.cast(extended_properties.c.value, NVARCHAR(4000)).label("comment"),
)
.where(whereclause)
.select_from(join)
@ -192,7 +192,7 @@ def get_columns(
is_identity = row[identity_cols.c.is_identity]
identity_start = row[identity_cols.c.seed_value]
identity_increment = row[identity_cols.c.increment_value]
comment = row[extended_properties.c.value]
comment = row["comment"]
coltype = self.ischema_names.get(type_, None)