#
# Bug #20449914 (#19894987) / #75721 (#75741/#75707/#75234/#75854/#74583)
# "handle_fatal_signal (sig=11) in Sql_cmd_handler_close::execute | sql/sql_handler"
# fixed in 5.5.46, 5.6.27, 5.7.9, 8.0.0
# Execution of certain BINLOG statements while temporary tables were open by
# HANDLER statements could cause a server exit.
#

--let $server_id = `SELECT @@server_id`
if($server_id != 1)
{
  --skip This test requires server_id to be equal to 1
}

CREATE TEMPORARY TABLE t1(c1 INT) ENGINE=MyISAM;
HANDLER t1 OPEN;
SELECT 1;
BINLOG ' SOgWTg8CAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8= ';
