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

Function arguments in error message should represent as a column name if possible. #11197

Closed
SunRunAway opened this issue Jul 11, 2019 · 0 comments · Fixed by #11862
Closed
Labels
component/expression help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
SELECT EXP(col_float_unsigned) FROM table40_int_autoinc;
SELECT EXP(17324);
  1. What did you expect to see?
mysql> SELECT EXP(col_float_unsigned) FROM table40_int_autoinc;
ERROR 1690 (22003): DOUBLE value is out of range in 'exp(`randgen_test`.`table40_int_autoinc`.`col_float_unsigned`)'
mysql> SELECT EXP(17324);
ERROR 1690 (22003): DOUBLE value is out of range in 'exp(17324)'
  1. What did you see instead?
mysql> SELECT EXP(col_float_unsigned) FROM table40_int_autoinc;
ERROR 1690 (22003): DOUBLE value is out of range in 'exp(17324)'
mysql> SELECT EXP(17324);
ERROR 1690 (22003): DOUBLE value is out of range in 'exp(17324)'
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    8c20289
@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. type/compatibility help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. component/expression and removed type/bug The issue is confirmed as a bug. component/expression labels Jul 11, 2019
@SunRunAway SunRunAway added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jul 12, 2019
sre-bot referenced this issue in Reminiscent/tidb Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility
Projects
None yet
1 participant