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

"div" scientific notation values out of range #4477

Closed
jackysp opened this issue Sep 8, 2017 · 3 comments
Closed

"div" scientific notation values out of range #4477

jackysp opened this issue Sep 8, 2017 · 3 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility

Comments

@jackysp
Copy link
Member

jackysp commented Sep 8, 2017

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
select (1.175494351E-37 div 1.7976931348623157E+308);
  1. What did you expect to see?
+-----------------------------------------------+
| (1.175494351E-37 div 1.7976931348623157E+308) |
+-----------------------------------------------+
|                                             0 |
+-----------------------------------------------+
  1. What did you see instead?
ERROR 1690 (22003): %s value is out of range in '%s'
  1. What version of TiDB are you using (tidb-server -V)?
@zz-jason zz-jason added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Sep 8, 2017
@mccxj
Copy link
Contributor

mccxj commented Sep 23, 2017

  1. I will tru to fix it. it seems a bug when cast real to decimal.
  2. I alsofound cast(xx as decimal(2,3)) will core.

@mccxj
Copy link
Contributor

mccxj commented Sep 11, 2018

@jackysp it should be closed

@shenli
Copy link
Member

shenli commented Sep 11, 2018

@mccxj Yes.

@shenli shenli closed this as completed Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility
Projects
None yet
Development

No branches or pull requests

4 participants