diff options
author | jimw@mysql.com <> | 2005-10-12 13:27:49 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2005-10-12 13:27:49 -0700 |
commit | 626c8a1c8c4e7031543f015563440983656b39ef (patch) | |
tree | 4c6a5ef7eb7fcaf505f80279ef9adef99af675e1 /mysql-test | |
parent | 6a19058c5558be850f3dc184be361e28adf11ba9 (diff) | |
parent | 3bfe3579d4d58a33062f3c7053206d331df7659d (diff) | |
download | mariadb-git-626c8a1c8c4e7031543f015563440983656b39ef.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-13344
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/cast.result | 3 | ||||
-rw-r--r-- | mysql-test/t/cast.test | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result index 1b681941a1d..69a4cb24276 100644 --- a/mysql-test/r/cast.result +++ b/mysql-test/r/cast.result @@ -264,3 +264,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 diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test index bb01e8cea83..ea0a0e4b352 100644 --- a/mysql-test/t/cast.test +++ b/mysql-test/t/cast.test @@ -147,4 +147,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 |