mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 02:34:19 +00:00

pt-table-sync now uses up to 17 decimal digits when writing floating point numbers in the generated SQL statements. This is necessary to prevent unintended data changes.
16 lines
360 B
SQL
16 lines
360 B
SQL
DROP DATABASE IF EXISTS test;
|
|
CREATE DATABASE test;
|
|
USE test;
|
|
|
|
CREATE TABLE `test_table` (
|
|
`id` BIGINT AUTO_INCREMENT PRIMARY KEY,
|
|
`value1` DOUBLE NOT NULL,
|
|
`value2` DOUBLE NOT NULL,
|
|
`some_string` VARCHAR(32) NOT NULL
|
|
) ENGINE=InnoDB;
|
|
|
|
INSERT INTO `test_table`
|
|
(`value1`, `value2`, `some_string`)
|
|
VALUES
|
|
(315.2599999999994, 2.6919444444444447, 'a');
|