mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
store/show vcols as item->print()
otherwise we'd need to store sql_mode *per vcol* (consider CREATE INDEX...) and how SHOW CREATE TABLE would support that? Additionally, get rid of vcol::expr_str, just to make sure the string is always generated and never leaked in the original form.
This commit is contained in:
@ -3,7 +3,7 @@ create table t1 (a int check (a>0));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL CHECK (a>0)
|
||||
`a` int(11) DEFAULT NULL CHECK ((`a` > 0))
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
insert into t1 values (1);
|
||||
insert into t1 values (0);
|
||||
@ -15,7 +15,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
CONSTRAINT `CONSTRAINT_1` CHECK (a>b)
|
||||
CONSTRAINT `CONSTRAINT_1` CHECK ((`a` > `b`))
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
insert into t1 values (1,0);
|
||||
insert into t1 values (0,1);
|
||||
@ -27,7 +27,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
CONSTRAINT `abc` CHECK (a>b)
|
||||
CONSTRAINT `abc` CHECK ((`a` > `b`))
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
insert into t1 values (1,0);
|
||||
insert into t1 values (0,1);
|
||||
|
Reference in New Issue
Block a user