mirror of
https://github.com/MariaDB/server.git
synced 2025-07-13 02:22:51 +03:00
Remove extra space in SHOW CREATE TABLE output. (Bug #13883)
mysql-test/r/alter_table.result: Update test results mysql-test/r/archive_bitfield.result: Update test results mysql-test/r/create.result: Update test results mysql-test/r/ctype_tis620.result: Update test results mysql-test/r/gis-rtree.result: Update test results mysql-test/r/index_merge_innodb.result: Update test results mysql-test/r/information_schema.result: Update test results mysql-test/r/innodb.result: Update test results mysql-test/r/key.result: Update test results mysql-test/r/merge.result: Update test results mysql-test/r/partition.result: Update test results mysql-test/r/partition_range.result: Update test results mysql-test/r/rpl000002.result: Update test results mysql-test/r/rpl_multi_engine.result: Update test results mysql-test/r/show_check.result: Update test results mysql-test/r/sql_mode.result: Update test results mysql-test/r/strict.result: Update test results mysql-test/r/symlink.result: Update test results mysql-test/r/system_mysql_db.result: Update test results mysql-test/r/type_blob.result: Update test results sql/sql_show.cc: Avoid adding extra space between 'PRIMARY KEY' and key fields in SHOW CREATE TABLE output.
This commit is contained in:
@ -24,7 +24,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
alter table t1 engine=myisam;
|
||||
show create table t1;
|
||||
@ -39,7 +39,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -73,7 +73,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -107,7 +107,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -141,7 +141,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
alter table t1 engine=myisam;
|
||||
show create table t1;
|
||||
@ -156,7 +156,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -190,7 +190,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -224,7 +224,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -258,7 +258,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
alter table t1 engine=myisam;
|
||||
show create table t1;
|
||||
@ -273,7 +273,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -307,7 +307,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@ -341,7 +341,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned default NULL,
|
||||
`y` year(4) default NULL,
|
||||
`t` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
|
Reference in New Issue
Block a user