I'm playing with a MySQL proxy that traps SQL queries and rewrite them or modifies the response on the fly.
The proxy works fine with the command line client. But I run through an error message when I click on a table name in Toad MySQL client.
When I click on a table name the following message appears:
IndexOutOfRangeException Index was outside the bounds of the array. Stack Trace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object args) at Quest.Toad.Util.Global.Invoke(Delegate handler, Object args) at Quest.Toad.Db.ToadDataAdapter.RaiseDone(Object sender, EventArgs args) at Quest.Toad.Db.ToadDataAdapter.InternalFillBackground()
The weird thing if that the result set seems fine because the result of the SHOW COLUMNS request is displayed.
Looking at the tcpdump of the proxy and comparing it with the tcpdump of the original mysql server the only difference I see is that my proxy returns two packets instead of one in the original mysql.
Any idea where to look at ?
Is there an option to disable the error message popup ( actually that would be ok for us) ?