Skip to content

Db2 implementation technical debt #1634

@nj1973

Description

@nj1973

While working on adding Sybase support I had some confusion with a cast to varchar(3000) that I didn't implement. It turned out to be due to this line of code in the Db2 modifications:

ibis_type_to_sqla[dt.String] = sa.sql.sqltypes.String(length=3000)

This code is changing a global structure that is leaking into other supported engines.

It looks like we do something similar in the Oracle code too (although those lines were not manifesting in the Sybase testing I was doing).

It was further complicated by me seeing different results depending on which Python version I was using.

Either way - we should revisit this technique and consider an engine specific change rather than a global change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions