List:Commits« Previous MessageNext Message »
From:Hakan Kuecuekyilmaz Date:April 19 2007 10:37pm
Subject:bk commit into 5.1-falcon tree (hakank:1.2624)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1-falcon repository of hakan. When hakan 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@stripped, 2007-04-19 22:37:46+02:00, hakank@stripped +2 -0
  Added new test case

  mysql-test/r/falcon_bug_27962.result@stripped, 2007-04-19 22:37:43+02:00,
hakank@stripped +18 -0
    New BitKeeper file ``mysql-test/r/falcon_bug_27962.result''

  mysql-test/r/falcon_bug_27962.result@stripped, 2007-04-19 22:37:43+02:00,
hakank@stripped +0 -0

  mysql-test/t/falcon_bug_27962.test@stripped, 2007-04-19 22:37:43+02:00,
hakank@stripped +35 -0
    New BitKeeper file ``mysql-test/t/falcon_bug_27962.test''

  mysql-test/t/falcon_bug_27962.test@stripped, 2007-04-19 22:37:43+02:00,
hakank@stripped +0 -0

# 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:	hakank
# Host:	lu0011.wdf.sap.corp
# Root:	/home/hakan/work/mysql/mysql-5.1-falcon
--- New file ---
+++ mysql-test/r/falcon_bug_27962.result	07/04/19 22:37:43
*** Bug #27962 ***
SET @@storage_engine = 'Falcon';
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a decimal(19,10));
INSERT INTO t1 VALUES (0.1),(0.01),(0.001);
SELECT a FROM t1 WHERE a = 0.1;
a
0.1000000000
SELECT a FROM t1 WHERE a = 0.01;
a
0.0100000000
SELECT a FROM t1 WHERE a = 0.001;
a
0.0010000000
SELECT count(*) FROM t1;
count(*)
3
DROP TABLE t1;

--- New file ---
+++ mysql-test/t/falcon_bug_27962.test	07/04/19 22:37:43
#
# Bug #27962: Falcon: lost post-decimal digits
# @tags decimal, wrong result
#
--echo *** Bug #27962 ***

# ----------------------------------------------------- #
# --- Initialisation                                --- #
# ----------------------------------------------------- #
let $engine = 'Falcon';
eval SET @@storage_engine = $engine;

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

CREATE TABLE t1 (a decimal(19,10));
INSERT INTO t1 VALUES (0.1),(0.01),(0.001);

# ----------------------------------------------------- #
# --- Test                                          --- #
# ----------------------------------------------------- #
SELECT a FROM t1 WHERE a = 0.1;
SELECT a FROM t1 WHERE a = 0.01;
SELECT a FROM t1 WHERE a = 0.001;

# ----------------------------------------------------- #
# --- Check                                         --- #
# ----------------------------------------------------- #
SELECT count(*) FROM t1;

# ----------------------------------------------------- #
# --- Final cleanup                                 --- #
# ----------------------------------------------------- #
DROP TABLE t1;

Thread
bk commit into 5.1-falcon tree (hakank:1.2624)Hakan Kuecuekyilmaz19 Apr