1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added --comments mysqldump option (default value is 1).

Fixed mysqldump test.


client/mysqldump.c:
  Added --comments option (default value is 1).
mysql-test/r/mysqldump.result:
  fixed using --skip-comment option
mysql-test/t/mysqldump.test:
  fixed using --skip-comment option
This commit is contained in:
unknown
2003-12-11 17:37:45 +04:00
parent e691523422
commit ba249c10c4
3 changed files with 44 additions and 21 deletions

View File

@ -15,3 +15,23 @@ INSERT INTO t1 VALUES (1), (2);
</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 (NULL);
DROP TABLE t1;

View File

@ -6,26 +6,24 @@ DROP TABLE IF EXISTS t1;
CREATE TABLE t1(a int);
INSERT INTO t1 VALUES (1), (2);
--exec $MYSQL_DUMP -X test t1
--exec $MYSQL_DUMP --skip-comments -X test t1
DROP TABLE t1;
#
# Bug #2005
# TODO: solve the problem with 'replace' and enable test
#
#CREATE TABLE t1 (a decimal(240, 20));
#INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
#("0987654321098765432109876543210987654321");
#--exec $MYSQL_DUMP test t1
#DROP TABLE t1;
CREATE TABLE t1 (a decimal(240, 20));
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
("0987654321098765432109876543210987654321");
--exec $MYSQL_DUMP --skip-comments test t1
DROP TABLE t1;
#
# Bug #2055
# TODO: solve the problem with 'replace' and enable test
#
#CREATE TABLE t1 (a double);
#INSERT INTO t1 VALUES (-9e999999);
#--exec $MYSQL_DUMP -X test t1
#DROP TABLE t1;
CREATE TABLE t1 (a double);
INSERT INTO t1 VALUES (-9e999999);
--exec $MYSQL_DUMP --skip-comments test t1
DROP TABLE t1;