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

INSERT should also ignore ErrOverflow if the SQL_MODE is not strict #49137

Closed
YangKeao opened this issue Dec 4, 2023 · 0 comments · Fixed by #49122
Closed

INSERT should also ignore ErrOverflow if the SQL_MODE is not strict #49137

YangKeao opened this issue Dec 4, 2023 · 0 comments · Fixed by #49122
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@YangKeao
Copy link
Member

YangKeao commented Dec 4, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (d int);
set sql_mode='';
insert into t values (cast('123121241241242515521525215525' as unsigned));

2. What did you expect to see? (Required)

A warning

3. What did you see instead (Required)

ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in '123121241241242515521525215525'

TiDB uses OverflowAsWarning to control the behavior. However, it's not set for INSERT statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants