mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
Tests for 'quote enum fields'. PR #102
This commit is contained in:
17
t/pt-table-sync/samples/enum_fields.sql
Normal file
17
t/pt-table-sync/samples/enum_fields.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
DROP DATABASE IF EXISTS enum_fields_db;
|
||||
|
||||
CREATE DATABASE enum_fields_db;
|
||||
|
||||
USE enum_fields_db;
|
||||
|
||||
DROP TABLE IF EXISTS enum_fields_db.rgb;
|
||||
|
||||
CREATE TABLE `enum_fields_db`.`rgb` (
|
||||
`name` VARCHAR(20) NOT NULL,
|
||||
`hex_code` ENUM('0xFF0000', '0x00FF00', '0x0000FF') NULL,
|
||||
PRIMARY KEY (`name`));
|
||||
|
||||
|
||||
INSERT INTO `enum_fields_db`.`rgb` (`name`, `hex_code`)
|
||||
VALUES ('red','0xFF0000'), ('green', '0x00FF00');
|
||||
|
Reference in New Issue
Block a user