mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed Bug #3361 "mysqldump quotes DECIMAL values"
client/mysqldump.c: changed quotation mark around DECIMAL field values from " to ' as fix of BUG #3361 "mysqldump quotes DECIMAL values" mysql-test/r/mysqldump.result: added test for Bug #3361 "mysqldump quotes DECIMAL values" mysql-test/t/mysqldump.test: added test for Bug #3361 "mysqldump quotes DECIMAL values"
This commit is contained in:
@ -22,8 +22,8 @@ CREATE TABLE t1 (
|
||||
a decimal(240,20) default NULL
|
||||
) TYPE=MyISAM;
|
||||
|
||||
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890.00000000000000000000");
|
||||
INSERT INTO t1 VALUES ("0987654321098765432109876543210987654321.00000000000000000000");
|
||||
INSERT INTO t1 VALUES ('1234567890123456789012345678901234567890.00000000000000000000');
|
||||
INSERT INTO t1 VALUES ('0987654321098765432109876543210987654321.00000000000000000000');
|
||||
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a double);
|
||||
@ -35,3 +35,17 @@ CREATE TABLE t1 (
|
||||
INSERT INTO t1 VALUES (RES);
|
||||
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT);
|
||||
INSERT INTO t1 VALUES (1.2345, 2.3456);
|
||||
INSERT INTO t1 VALUES ('1.2345', 2.3456);
|
||||
INSERT INTO t1 VALUES ("1.2345", 2.3456);
|
||||
CREATE TABLE t1 (
|
||||
a decimal(10,5) default NULL,
|
||||
b float default NULL
|
||||
) TYPE=MyISAM;
|
||||
|
||||
INSERT INTO t1 VALUES ('1.23450',2.3456);
|
||||
INSERT INTO t1 VALUES ('1.23450',2.3456);
|
||||
INSERT INTO t1 VALUES ('1.23450',2.3456);
|
||||
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user