mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
PT-202 pt-online-schema-change fails with virtual columns
Modified TableParser to ignore GENERATED columns from the columns list used to construct SELECTs/INSERTs
This commit is contained in:
6
t/lib/samples/generated_cols.sql
Normal file
6
t/lib/samples/generated_cols.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE `t1` (
|
||||
`ID` int(11) NOT NULL,
|
||||
`Column2` int(11) DEFAULT NULL,
|
||||
`Column3` int(11) GENERATED ALWAYS AS ((`Column2` + 1)) STORED,
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
|
Reference in New Issue
Block a user