✅ Trim whitespace automatically in validation rules like exists: and unique: to prevent confusing table name errors #57198
Unanswered
saeedeshon
asked this question in
Ideas
Replies: 1 comment 4 replies
-
Would be worth a PR 🤔 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Currently, when using the
exists:
orunique:
validation rules, if there is an accidental space after the colon, the framework treats the space as part of the table name.This leads to a confusing SQL error instead of a helpful validation message:
Beta Was this translation helpful? Give feedback.
All reactions