Files
percona-toolkit/t/lib/samples/generated_cols_comments_2.sql
Carlos Salguero e570cecbab PT-1914 Column data lost when 'Generated' is in the column comment (#482)
* PMM-1914 Fixed column parsing having generated

Fixed table parser code that errouneously considered a column as
generated when the default was empty DEFAULT '' and the COMMENT had
the word 'Generated'.

* PMM-1914 Updated TableParser in all programs

* PT-1914 Updated changelog

* PT-1914 Added test
2021-03-09 11:46:05 -03:00

7 lines
203 B
SQL

Create Table: CREATE TABLE `t` (
`id` int(11) NOT NULL,
`c` varchar(100) NOT NULL DEFAULT '' COMMENT 'Generated',
`v` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;