-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Bug] insert时数值超出类型表示范围仍导入成功 #40870
Comments
现在新优化器上会考虑规划一个cast,而cast的实现中,目前是不会检查是否超出范围的。
|
Which version can support? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search before asking
Version
2.1.5
What's Wrong?
使用新优化器,insert时数值超出类型表示范围仍导入成功
这个问题与新优化器有关,之前的优化器在stmt.analyze阶段就抛异常了,新优化器没考虑这个异常
What You Expected?
insert时数值超出类型表示范围导入失败并抛出异常
How to Reproduce?
insert导入的值超出int范围:
insert导入的值超出char范围:
Anything Else?
无
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: