Skip to content

Commit 3fec38d

Browse files
committed
MDEV-28405 main.information_schema_tables fails sporadically with ER_NEED_REPREPARE or extra warning
1 parent 3b6c04f commit 3fec38d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mysql-test/t/information_schema_tables.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ LOOP
2424
END LOOP $
2525
--delimiter ;
2626
--connection default
27+
# Avoid "Prepared statement needs to be re-prepared"
28+
# Note, the code could probably eventually fixed to avoid forcing re-pepare if
29+
# the *temporary* instance of Sp_caches (not the permanent one) was invalidated.
30+
--disable_ps_protocol
2731
--disable_warnings
2832
SELECT v.* FROM v JOIN INFORMATION_SCHEMA.TABLES WHERE DATA_LENGTH = -1;
2933
--enable_warnings
34+
--enable_ps_protocol
3035
# Cleanup
3136
--replace_result $conid CONID
3237
--eval KILL $conid

0 commit comments

Comments
 (0)