create table t1 (i tinyint); SET @saved_dbug = @@SESSION.debug_dbug; SET debug_dbug='+d,bug11747970_raise_error'; insert into t1 (i) select i from t1 union select i from t1; ERROR 70100: Query execution was interrupted drop table t1; SET debug_dbug= @saved_dbug;