List:Internals« Previous MessageNext Message »
From:holyfoot Date:June 8 2005 10:11am
Subject:bk commit into 5.0 tree (hf:1.1947) BUG#8425
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of hf. When hf 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.1947 05/06/08 13:11:04 hf@deer.(none) +2 -0
  Fix for bug #8425 (Insufficient precision in the '/' operation)
    As the bug was already fixed, just testcase added here

  mysql-test/t/type_newdecimal.test
    1.16 05/06/08 13:11:00 hf@deer.(none) +12 -0
    test case added

  mysql-test/r/type_newdecimal.result
    1.16 05/06/08 13:11:00 hf@deer.(none) +13 -0
    test result fixed

# 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:	hf
# Host:	deer.(none)
# Root:	/home/hf/work/mysql-5.0.9894

--- 1.15/mysql-test/r/type_newdecimal.result	Wed Jun  8 12:24:05 2005
+++ 1.16/mysql-test/r/type_newdecimal.result	Wed Jun  8 13:11:00 2005
@@ -896,3 +896,16 @@
 insert into t1 values(1,-1,-1);
 ERROR 22003: Out of range value adjusted for column 'd2' at row 1
 drop table t1;
+set @@div_precision_increment=15;
+create table t1 (col1 int, col2 decimal(30,25), col3 numeric(30,25));
+insert into t1 values (1,0.0123456789012345678912345,0.0123456789012345678912345);
+select col2/9999999999 from t1 where col1=1;
+col2/9999999999
+0.000000000001234567890246913578
+select 9999999999/col2 from t1 where col1=1;
+9999999999/col2
+810000007209.000065537105051
+select 77777777/7777777;
+77777777/7777777
+10.000000900000090
+drop table t1;

--- 1.15/mysql-test/t/type_newdecimal.test	Wed Jun  8 12:24:05 2005
+++ 1.16/mysql-test/t/type_newdecimal.test	Wed Jun  8 13:11:00 2005
@@ -934,3 +934,15 @@
 --error 1264
 insert into t1 values(1,-1,-1);
 drop table t1;
+
+#
+# Bug #8425 (insufficient precision of the division)
+#
+set @@div_precision_increment=15;
+create table t1 (col1 int, col2 decimal(30,25), col3 numeric(30,25));
+insert into t1 values (1,0.0123456789012345678912345,0.0123456789012345678912345);
+select col2/9999999999 from t1 where col1=1;
+select 9999999999/col2 from t1 where col1=1;
+select 77777777/7777777;
+drop table t1;
+
Thread
bk commit into 5.0 tree (hf:1.1947) BUG#8425holyfoot8 Jun