Skip to content

Commit

Permalink
Longer varchars (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
radbrt authored Mar 20, 2023
1 parent 48fdf8a commit 7279221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_oracle/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def to_sql_type(self, jsonschema_type: dict) -> sqlalchemy.types.TypeEngine: #
if datelike_type == "date":
return cast(sqlalchemy.types.TypeEngine, sqlalchemy.types.DATE())

maxlength = jsonschema_type.get("maxLength", 255)
maxlength = jsonschema_type.get("maxLength", 2000)
return cast(
sqlalchemy.types.TypeEngine, sqlalchemy.types.VARCHAR(maxlength)
)
Expand Down

0 comments on commit 7279221

Please sign in to comment.