Skip to content

Commit

Permalink
fixes for test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Feb 24, 2018
1 parent 8f9c640 commit ad0f8fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/r/instant_alter_debug.result
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ALTER TABLE t4 ADD COLUMN b INT;
SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
LEFT JOIN t4 ON (NUMERIC_SCALE = pk);
COUNT(*)
1744
1748
SET DEBUG_SYNC='innodb_inplace_alter_table_enter SIGNAL enter WAIT_FOR delete';
ALTER TABLE t4 ADD COLUMN c INT;
connect dml,localhost,root,,;
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/parts/t/print_error.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# MDEV-15336 Server crashes in handler::print_error / ha_partition::print_error upon query timeout
#
--source include/have_innodb.inc
--source include/not_embedded.inc
--source include/have_partition.inc

CREATE TABLE t1 (i INT) ENGINE=InnoDB PARTITION BY HASH (i) PARTITIONS 2;
Expand Down
4 changes: 2 additions & 2 deletions storage/innobase/handler/handler0alter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ innobase_set_foreign_key_option(
foreign->type = DICT_FOREIGN_ON_DELETE_SET_NULL;
break;
case FK_OPTION_UNDEF:
DBUG_ASSERT(0);
break;
}

switch (fk_key->update_opt) {
Expand All @@ -1411,7 +1411,7 @@ innobase_set_foreign_key_option(
foreign->type |= DICT_FOREIGN_ON_UPDATE_SET_NULL;
break;
case FK_OPTION_UNDEF:
DBUG_ASSERT(0);
break;
}

return(innobase_check_fk_option(foreign));
Expand Down

0 comments on commit ad0f8fe

Please sign in to comment.