mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -223,8 +223,8 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` varchar(30) DEFAULT NULL,
|
||||
`b` blob DEFAULT DES_ENCRYPT(a, 'passwd'),
|
||||
`c` text DEFAULT DES_DECRYPT(b, 'passwd')
|
||||
`b` blob DEFAULT des_encrypt(`a`,'passwd'),
|
||||
`c` text DEFAULT des_decrypt(`b`,'passwd')
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 (a) VALUES ('test');
|
||||
SELECT c FROM t1;
|
||||
|
Reference in New Issue
Block a user