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

Add enum value for error: 2312 ER_WARN_DATA_OUT_OF_RANGE_UNSPECIFIC: Out of range value #5

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

zhujoel
Copy link

@zhujoel zhujoel commented Sep 27, 2023

SingleStore can raise the error: 2312 ER_WARN_DATA_OUT_OF_RANGE_UNSPECIFIC: Out of range value when the result of a query is outside the bounds of its given type.

The following query raises this error for example:

SELECT (1000000 / 0.00000001):>DECIMAL(28,14);

This error seems to be specific to SingleStore, as I have not found it in the MySQL documentation.

This error code is currently not present in the SingleStoreErrorCode enum, which removes compile-time safety when catching it.

SingleStore DB Version: 8.1.6

@okramarenko okramarenko mentioned this pull request Nov 28, 2024
@okramarenko okramarenko merged commit 18b98d0 into memsql:master Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants