From 13fa84a7e2f25f69fcaf8ad5893ac6fe152d6ff8 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Sep 2005 15:59:13 -0700 Subject: 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. --- mysql-test/r/cast.result | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mysql-test/r') diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result index 7cd0934f7a3..d5d679a0ae8 100644 --- a/mysql-test/r/cast.result +++ b/mysql-test/r/cast.result @@ -252,3 +252,6 @@ cast(repeat('1',20) as signed) -7335632962598440505 Warnings: Warning 1105 Cast to signed converted positive out-of-range integer to it's negative complement +select cast(1.0e+300 as signed int); +cast(1.0e+300 as signed int) +9223372036854775807 -- cgit v1.2.1