mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -32,7 +32,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) AS (a+1) PERSISTENT,
|
||||
`c` int(11) AS (a+2) VIRTUAL
|
||||
`b` int(11) AS ((`a` + 1)) PERSISTENT,
|
||||
`c` int(11) AS ((`a` + 2)) VIRTUAL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user