Autodiscover + CONNECT + OR REPLACE

Description

Sorry, I understand that this test case is complex, but I wasn't able to simplify it:

Just to be clear, the procedure creates a CONNECT table based on a query, so that the same resultset can be read with a SELECT. This allows, for example, to loop the results of SHOW MASTER STATUS with a cursor, use subqueries, etc. That's why I set the bug to "major" despite it being so exotic.

The problem seems to occur on the second call, when the underlying table is replaced with another table which has different columns. Note that the table is correctly replaced. But the error message still references to a column which doesn't exist anymore.

Environment

None

Assignee

Unassigned

Reporter

Federico Razzoli

Labels

Fix versions

Affects versions

Priority

Minor
Configure