CREATE TABLE `t8` (
  `ecol8` set('foo','bar') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING;

CREATE TABLE `t9` (
  `ecol9` set('foo','bar') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT WITH SYSTEM VERSIONING
 PARTITION BY SYSTEM_TIME INTERVAL 1 MONTH
(PARTITION `ver_p1` HISTORY ENGINE = InnoDB,
 PARTITION `ver_p3` HISTORY ENGINE = InnoDB,
 PARTITION `ver_pn` CURRENT ENGINE = InnoDB);

CREATE PROCEDURE stored_proc_23496 () LANGUAGE SQL SELECT * from `t8` WHERE row_start IN (SELECT row_start FROM t9);
call stored_proc_23496;
call stored_proc_23496;

drop table t8,t9;
drop stored_proc_23496;
