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:
@ -178,9 +178,9 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` text DEFAULT NULL,
|
||||
`b` blob DEFAULT COMPRESS(a),
|
||||
`bl` int(11) DEFAULT UNCOMPRESSED_LENGTH(b),
|
||||
`a1` text DEFAULT UNCOMPRESS(b)
|
||||
`b` blob DEFAULT compress(`a`),
|
||||
`bl` int(11) DEFAULT uncompressed_length(`b`),
|
||||
`a1` text DEFAULT uncompress(`b`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 (a) VALUES (REPEAT('a',100));
|
||||
SELECT bl, a1 FROM t1;
|
||||
|
Reference in New Issue
Block a user