Skip to content

Conversation

skauk
Copy link
Contributor

@skauk skauk commented Mar 18, 2025

Check numeric string length to fit into the database column.
When adding a meta with numeric string of length more than 20 characters a database exception occurs (if the database honours full column definition of DECIMAL(36, 16)). Adding a regular expression to check the length of integer and fractional parts will avoid that. Regular expression checks for optional negative sign, an integer part of 1 to 20 characters and an optional fractional part up to 16 characters.

Check numeric string length to fit into the database column
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