Files
percona-toolkit/t/lib/samples/generated_cols.sql
Carlos Salguero b51d09d811 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
2017-10-05 15:19:57 -03:00

7 lines
233 B
SQL

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