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

[feature and doc]Out-of-Range and Overflow Handling #1176

Closed
amber-moe opened this issue Oct 30, 2019 · 4 comments
Closed

[feature and doc]Out-of-Range and Overflow Handling #1176

amber-moe opened this issue Oct 30, 2019 · 4 comments
Assignees
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@amber-moe
Copy link
Contributor

What will happen if I insert a value out of the defined data type?
image
This is what mysql returns:
image
https://dev.mysql.com/doc/refman/5.5/en/out-of-range-and-overflow.html
Do we need a doc to introduce this matter? @whitewum

@amber-moe
Copy link
Contributor Author

I will keep reporting the returns that are different from mysql.

@whitewum
Copy link
Contributor

I dont understand the example you give. please provide more details and data types you what to give.

@amber-moe
Copy link
Contributor Author

I dont understand the example you give. please provide more details and data types you what to give.

Sorry for giving the wrong picture. Consider the follow example:
If I input a value out the defined range, nebula will throw an error.
image
However, mysql returns more details:
image
So I'm suggesting if nebula can give a hint on this matter.

@jude-zhu jude-zhu added the type/enhancement Type: make the code neat or more efficient label Nov 7, 2019
@CPWstatic
Copy link
Contributor

(root@nebula) [nba]> yield 9223372036854775807890
[ERROR (-7)]: SyntaxError: Out of range: near `9223372036854775807890'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

4 participants