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

Unexpected Error Overflow #47348

Open
bajinsheng opened this issue Sep 28, 2023 · 1 comment
Open

Unexpected Error Overflow #47348

bajinsheng opened this issue Sep 28, 2023 · 1 comment

Comments

@bajinsheng
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 TEXT(300));
INSERT t0(c0) VALUES(-2E300);

SELECT t0.c0 FROM t0 WHERE CAST(- t0.c0 AS DECIMAL); -- ERROR 1105 (HY000): [components/tidb_query_datatype/src/codec/mysql/decimal.rs:1893]: parsing 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 will overflow

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

| Release Version: v7.4.0-alpha
Edition: Community
Git Commit Hash: 32540a4a77984744dc0309d9287b05c8e9593252
Git Branch: heads/refs/tags/v7.4.0-alpha
UTC Build Time: 2023-09-27 14:33:24
GoVersion: go1.21.1
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
@bajinsheng bajinsheng added the type/bug This issue is a bug. label Sep 28, 2023
@bajinsheng
Copy link
Author

/label fuzz/sqlancer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants