~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/r/type_newdecimal-big.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop procedure if exists sp1;
 
2
CREATE PROCEDURE sp1()
 
3
BEGIN 
 
4
DECLARE v1, v2, v3, v4 DECIMAL(28,12);
 
5
DECLARE v3_2, v4_2 DECIMAL(28, 12);
 
6
DECLARE counter INT;
 
7
SET v1 = 1;
 
8
SET v2 = 2;
 
9
SET v3 = 1000000000000;
 
10
SET v4 = 2000000000000;
 
11
SET counter = 0;
 
12
WHILE counter < 100000 DO
 
13
SET v1 = v1 + 0.000000000001;
 
14
SET v2 = v2 - 0.000000000001;
 
15
SET v3 = v3 + 1;
 
16
SET v4 = v4 - 1;
 
17
SET counter = counter + 1; 
 
18
END WHILE;
 
19
SET v3_2 = v3 * 0.000000000001;
 
20
SET v4_2 = v4 * 0.000000000001;
 
21
SELECT v1, v2, v3, v3_2, v4, v4_2;
 
22
END//
 
23
call sp1()//
 
24
v1      v2      v3      v3_2    v4      v4_2
 
25
1.000000100000  1.999999900000  1000000100000.000000000000      1.000000100000  1999999900000.000000000000      1.999999900000
 
26
drop procedure sp1;