mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Remove extra space in SHOW CREATE TABLE output. (Bug #13883)
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