Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
back reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
radbrt committed Jan 19, 2023
1 parent 25d1359 commit ac65ff8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions target_mssql/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,7 @@ def to_sql_type(self, jsonschema_type: dict) -> sqlalchemy.types.TypeEngine: #
maxlength = jsonschema_type.get("maxLength")
if maxlength is not None:
if maxlength > 8000:
return cast(
sqlalchemy.types.TypeEngine, sqlalchemy.types.TEXT()
)
return cast(sqlalchemy.types.TypeEngine, sqlalchemy.types.TEXT())

return cast(
sqlalchemy.types.TypeEngine, sqlalchemy.types.VARCHAR(maxlength)
Expand Down

0 comments on commit ac65ff8

Please sign in to comment.