List:Commits« Previous MessageNext Message »
From:konstantin Date:January 16 2006 7:31pm
Subject:bk commit into 5.0 tree (konstantin:1.2026) BUG#7670
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kostja. When kostja does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2026 06/01/16 22:31:13 konstantin@stripped +2 -0
  A test case for Bug#7670 "Loss of precision for some integer 
  values stored into DOUBLE column" (Can't repeat)

  mysql-test/t/type_decimal.test
    1.29 06/01/16 22:30:59 konstantin@stripped +13 -0
    A test case for Bug#7670

  mysql-test/r/type_decimal.result
    1.39 06/01/16 22:30:59 konstantin@stripped +13 -0
    Test results fixed (Bug#7670)

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	konstantin
# Host:	dragonfly.local
# Root:	/opt/local/work/mysql-5.0-root

--- 1.38/mysql-test/r/type_decimal.result	2005-10-11 13:58:20 +04:00
+++ 1.39/mysql-test/r/type_decimal.result	2006-01-16 22:30:59 +03:00
@@ -772,3 +772,16 @@
 003trans	39.98
 004trans	31.18
 drop table t1, t2;
+create table t1 (a double(53,0));
+insert into t1 values (9988317491112007680) ,(99883133042600208184115200);
+select a from t1;
+a
+9988317491112007680
+99883133042600208184115200
+truncate t1;
+insert into t1 values (9988317491112007680.0) ,(99883133042600208184115200.0);
+select a from t1;
+a
+9988317491112007680
+99883133042600208184115200
+drop table t1;

--- 1.28/mysql-test/t/type_decimal.test	2005-10-11 13:58:20 +04:00
+++ 1.29/mysql-test/t/type_decimal.test	2006-01-16 22:30:59 +03:00
@@ -376,3 +376,16 @@
 
 select * from t2; 
 drop table t1, t2;
+
+# 
+# A test case for Bug#7670 "Loss of precision for some integer values stored
+# into DOUBLE column": check that there is no truncation
+# when inserting big integers into double columns.
+#
+create table t1 (a double(53,0));
+insert into t1 values (9988317491112007680) ,(99883133042600208184115200);
+select a from t1;
+truncate t1;
+insert into t1 values (9988317491112007680.0) ,(99883133042600208184115200.0);
+select a from t1;
+drop table t1;
Thread
bk commit into 5.0 tree (konstantin:1.2026) BUG#7670konstantin16 Jan