mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
280dcf42ab
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"
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1(a int);
|
|
INSERT INTO t1 VALUES (1), (2);
|
|
<?xml version="1.0"?>
|
|
<mysqldump>
|
|
<database name="test">
|
|
<table name="t1">
|
|
<row>
|
|
<field name="a">1</field>
|
|
</row>
|
|
<row>
|
|
<field name="a">2</field>
|
|
</row>
|
|
</table>
|
|
</database>
|
|
</mysqldump>
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a decimal(240, 20));
|
|
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
|
|
("0987654321098765432109876543210987654321");
|
|
CREATE TABLE t1 (
|
|
a decimal(240,20) default NULL
|
|
) TYPE=MyISAM;
|
|
|
|
INSERT INTO t1 VALUES ('1234567890123456789012345678901234567890.00000000000000000000');
|
|
INSERT INTO t1 VALUES ('0987654321098765432109876543210987654321.00000000000000000000');
|
|
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a double);
|
|
INSERT INTO t1 VALUES (-9e999999);
|
|
CREATE TABLE t1 (
|
|
a double default NULL
|
|
) TYPE=MyISAM;
|
|
|
|
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;
|