mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
do not quote numbers in the DEFAULT clause in SHOW CREATE
This commit is contained in:
@ -121,7 +121,7 @@ create table t1 ( min_num dec(6,6) default .000001);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`min_num` decimal(6,6) DEFAULT '0.000001'
|
||||
`min_num` decimal(6,6) DEFAULT 0.000001
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1 ;
|
||||
set session sql_mode = 'IGNORE_SPACE';
|
||||
@ -129,14 +129,14 @@ create table t1 ( min_num dec(6,6) default 0.000001);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`min_num` decimal(6,6) DEFAULT '0.000001'
|
||||
`min_num` decimal(6,6) DEFAULT 0.000001
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1 ;
|
||||
create table t1 ( min_num dec(6,6) default .000001);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`min_num` decimal(6,6) DEFAULT '0.000001'
|
||||
`min_num` decimal(6,6) DEFAULT 0.000001
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1 ;
|
||||
set @@SQL_MODE=NULL;
|
||||
|
Reference in New Issue
Block a user