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:
@ -55,7 +55,7 @@ show create table test.byrange_tbl;
|
||||
Table Create Table
|
||||
byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`dt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`user` char(255) DEFAULT NULL,
|
||||
`uuidf` varbinary(255) DEFAULT NULL,
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
@ -69,7 +69,7 @@ show create table test.regular_tbl;
|
||||
Table Create Table
|
||||
regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`dt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`user` char(255) DEFAULT NULL,
|
||||
`uuidf` varbinary(255) DEFAULT NULL,
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
@ -99,7 +99,7 @@ show create table test.byrange_tbl;
|
||||
Table Create Table
|
||||
byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`dt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`user` char(255) DEFAULT NULL,
|
||||
`uuidf` varbinary(255) DEFAULT NULL,
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
@ -113,7 +113,7 @@ show create table test.regular_tbl;
|
||||
Table Create Table
|
||||
regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`dt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`user` char(255) DEFAULT NULL,
|
||||
`uuidf` varbinary(255) DEFAULT NULL,
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
|
Reference in New Issue
Block a user