mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00

Previously, pt-table-sync generated DML statements that included the generated columns of a table, which is however rejected by the database and not necessary for the required sync statements.
13 lines
305 B
SQL
13 lines
305 B
SQL
DROP DATABASE IF EXISTS test;
|
|
CREATE DATABASE test;
|
|
USE test;
|
|
|
|
CREATE TABLE `test_table` (
|
|
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
|
`value` INT NOT NULL,
|
|
`derived_value` INT AS (2*`value`)
|
|
) ENGINE=InnoDB;
|
|
|
|
INSERT INTO `test_table` (`value`) VALUES (24);
|
|
INSERT INTO `test_table` (`value`) VALUES (42);
|