2
DROP TABLE IF EXISTS t1;
5
# Bug#2005 Long decimal comparison bug.
7
CREATE TABLE t1 (a DECIMAL(64, 20));
8
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
9
("0987654321098765432109876543210987654321");
10
# Begin testing drizzledump output + restore
11
# Create 'original table name - <table>_orig
12
SET @orig_table_name = CONCAT('test.t1', '_orig');
13
# Rename original table
14
ALTER TABLE test.t1 RENAME to test.t1_orig;
15
# Recreate table from drizzledump output
16
# Compare original and recreated tables
17
# Recreated table: test.t1
18
# Original table: test.t1_orig
19
Comparing tables test.t1 and test.t1_orig
21
DROP TABLE test.t1, test.t1_orig;
23
# Bug#3361 mysqldump quotes DECIMAL values inconsistently
25
CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT);
26
INSERT INTO t1 VALUES (1.2345, 2.3456);
27
INSERT INTO t1 VALUES ('1.2345', 2.3456);
28
INSERT INTO t1 VALUES ("1.2345", 2.3456);
29
INSERT INTO t1 VALUES (1.2345, 2.3456);
30
INSERT INTO t1 VALUES ('1.2345', 2.3456);
31
INSERT INTO t1 VALUES ("1.2345", 2.3456);
32
# Begin testing drizzledump output + restore
33
# Create 'original table name - <table>_orig
34
SET @orig_table_name = CONCAT('test.t1', '_orig');
35
# Rename original table
36
ALTER TABLE test.t1 RENAME to test.t1_orig;
37
# Recreate table from drizzledump output
38
# Compare original and recreated tables
39
# Recreated table: test.t1
40
# Original table: test.t1_orig
41
Comparing tables test.t1 and test.t1_orig
43
DROP TABLE test.t1, test.t1_orig;
45
# WL#2319 Exclude Tables from dump
47
CREATE TABLE t1 (a INT);
48
CREATE TABLE t2 (a INT);
49
INSERT INTO t1 VALUES (1),(2),(3);
50
INSERT INTO t2 VALUES (4),(5),(6);
51
# Begin testing drizzledump output + restore
52
# Create 'original table name - <table>_orig
53
SET @orig_table_name = CONCAT('test.t2', '_orig');
54
# Rename original table
55
ALTER TABLE test.t2 RENAME to test.t2_orig;
56
# Recreate table from drizzledump output
57
# Compare original and recreated tables
58
# Recreated table: test.t2
59
# Original table: test.t2_orig
60
Comparing tables test.t2 and test.t2_orig
62
DROP TABLE test.t2, test.t2_orig;
65
# Bug#8830 mysqldump --skip-extended-insert causes --hex-blob to dump wrong values
67
CREATE TABLE t1 (`b` blob);
68
INSERT INTO `t1` VALUES (0x602010000280100005E71A);
69
# Begin testing drizzledump output + restore
70
# Create 'original table name - <table>_orig
71
SET @orig_table_name = CONCAT('test.t1', '_orig');
72
# Rename original table
73
ALTER TABLE test.t1 RENAME to test.t1_orig;
74
# Recreate table from drizzledump output
75
# Compare original and recreated tables
76
# Recreated table: test.t1
77
# Original table: test.t1_orig
78
Comparing tables test.t1 and test.t1_orig
80
DROP TABLE test.t1, test.t1_orig;
83
# remove drizzledumpfile