Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Bind validation #3102

Closed
wants to merge 11 commits into from
Closed

WIP: Bind validation #3102

wants to merge 11 commits into from

Conversation

rPraml
Copy link
Contributor

@rPraml rPraml commented Jun 9, 2023

This PR effectively validates DB inserts/updates of JSONs at Ebean level.

Use case/Problem 1:
inserts for JSON columns, that have a length specified may work on one database (where "clob" is used for json) and fail on an other where a size limited type (e.g. varchar(1000)) is used.

Problem 2:

Some databases will silently truncate strings (or also other data types) See "TestMetaAnnotations"

This change will allow ebean to validate the string lengths of JSONs

Will provide more infos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant