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

Protect against non-numeric taxRate value #765

Conversation

spaceisntsyntax
Copy link
Contributor

Newer MySQL/MariaDB versions are more strict about type restrictions, and do not like to coerce an empty string to NULL on a numeric column type. Here we make sure that non-numeric user input is dropped, and NULL is stored when a number isn't passed to the input form.

Newer MySQL/MariaDB versions are more strict about type restrictions,
and do not like to coerce an empty string to NULL on a numeric column
type.  Here we make sure that non-numeric user input is dropped, and
NULL is stored when a number isn't passed to the input form.

Signed-off-by: Mike Rylander <[email protected]>
@andyp-uk
Copy link
Contributor

Fix looks good.

@andyp-uk andyp-uk merged commit ee37f1e into coral-erm:development Apr 23, 2024
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.

2 participants