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

Validating index length prefixes #10288

Open
pimeys opened this issue Nov 16, 2021 · 0 comments
Open

Validating index length prefixes #10288

pimeys opened this issue Nov 16, 2021 · 0 comments
Labels
kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. tech/engines/datamodel Issue about parsing/validation/rendering of the Prisma schema topic: extendedIndexes topic: index length topic: indexes topic: mysql

Comments

@pimeys
Copy link
Contributor

pimeys commented Nov 16, 2021

MySQL holds special rules about the size of the length prefix. These rules are different on text and bytes columns, and we should maybe catch them in datamodel validation before erroring out in the database.

This should follow up the work on redefining native type and connector specific validations.

Related bug reports:

@pimeys pimeys added process/candidate tech/engines/datamodel Issue about parsing/validation/rendering of the Prisma schema topic: indexes team/schema Issue for team Schema. labels Nov 16, 2021
@pantharshit00 pantharshit00 added the kind/improvement An improvement to existing feature and code. label Nov 16, 2021
@do4gr do4gr mentioned this issue Mar 16, 2022
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. tech/engines/datamodel Issue about parsing/validation/rendering of the Prisma schema topic: extendedIndexes topic: index length topic: indexes topic: mysql
Projects
None yet
Development

No branches or pull requests

4 participants