mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
PT-1574 Fixed undefs handling
This commit is contained in:
@@ -53,6 +53,9 @@ $sb->load_file('master', "t/pt-online-schema-change/samples/pt-1574.sql");
|
||||
stderr => 1,
|
||||
);
|
||||
|
||||
my $sql_mode = $dbh->selectcol_arrayref('SELECT @@sql_mode');
|
||||
warn Data::Dumper::Dumper($sql_mode);
|
||||
|
||||
isnt(
|
||||
$exit_status,
|
||||
0,
|
||||
|
@@ -22,12 +22,13 @@ INSERT INTO `test`.`t1` VALUES
|
||||
(NULL,NULL,NULL);
|
||||
|
||||
|
||||
CREATE TABLE `test`.`t2` (
|
||||
`id` int(11) DEFAULT NULL,
|
||||
`site_name` varchar(25) PRIMARY KEY,
|
||||
`last_update` datetime DEFAULT NULL,
|
||||
UNIQUE KEY `idx_id` (`id`),
|
||||
KEY `idx_last_update` (`last_update`)
|
||||
CREATE TABLE `t2` (
|
||||
`id` int(11) DEFAULT NULL,
|
||||
`site_name` varchar(25) NOT NULL,
|
||||
`last_update` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`site_name`),
|
||||
UNIQUE KEY `idx_id` (`id`),
|
||||
KEY `idx_last_update` (`last_update`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
INSERT INTO `test`.`t2` VALUES
|
||||
|
Reference in New Issue
Block a user