diff options
author | unknown <jimw@mysql.com> | 2005-09-22 15:59:13 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-09-22 15:59:13 -0700 |
commit | a094d013d6281c9beb0c143097229d9ed9209c61 (patch) | |
tree | d7153c4337a3eb84f2a213da38023db6748d08ec /mysql-test/t/cast.test | |
parent | e9da5a24a0b9773fba0fa826dda2a78cc4709fcd (diff) | |
download | mariadb-git-a094d013d6281c9beb0c143097229d9ed9209c61.tar.gz |
Fix CAST(1.0e+300 TO SIGNED). (Bug #13344)
mysql-test/r/cast.result:
Update results
mysql-test/t/cast.test:
Add regression test
sql/item.h:
Cap Item_real::val_int() to LONGLONG_MIN and LONGLONG_MAX.
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r-- | mysql-test/t/cast.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index 394971f9648..e883788be51 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -143,4 +143,9 @@ select cast(concat('184467440','73709551615') as signed); select cast(repeat('1',20) as unsigned); select cast(repeat('1',20) as signed); +# +# Bug #13344: cast of large decimal to signed int not handled correctly +# +select cast(1.0e+300 as signed int); + # End of 4.1 tests |