You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Dolt version 1.12.0, when a dolt sql-server processes a request for an unknown user variable (e.g. select @foo;) the process panics and exits. This only seems to happen with a running sql server; not with the dolt sql shell.
Client repro:
mysql>select@foo;
ERROR 2013 (HY000): Lost connection to MySQL server during query
No connection. Trying to reconnect...
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (61)ERROR: Can't connect to the server
Looks like column.Type is nil when vitess goes to send back the field/type metadata over the wire and causes this panic. Filling this in with types.Null seems to be enough to make it work correctly. I'll do a little more testing and tidying up and get a PR open for the fix.
This is another bug that only manifests when we go through the wire serialization code. @zachmu started work last week to get our existing tests to run over a sql-server connection, so very soon we should have protection against issues like this getting past our tests.
In Dolt version 1.12.0, when a
dolt sql-server
processes a request for an unknown user variable (e.g.select @foo;
) the process panics and exits. This only seems to happen with a running sql server; not with thedolt sql
shell.Client repro:
Server logs:
The text was updated successfully, but these errors were encountered: