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
MySQL client does automatic rehashing by default, which sends SELECT * FROM <table_name> LIMIT 0 over the wire for for every table on the database. If there is a view that references non-existing table, it crashes the client with ERROR 2008 (HY000): MySQL client ran out of memory error message.
Repro:
create table t (pk int primary key);
create view v as select * from t;
rename table t to tt;
then restart the server. After restarting the server, run SELECT 1 or any query.
Note: show create view v should still work with a warning, but currently in Dolt it throws an error, which causes the client not be able to connect to the restarted server.
Workaround is to use mysql client with -A flag option, which disables automatic rehashing.
The text was updated successfully, but these errors were encountered:
MySQL client does
automatic rehashing
by default, which sendsSELECT * FROM <table_name> LIMIT 0
over the wire for for every table on the database. If there is a view that references non-existing table, it crashes the client withERROR 2008 (HY000): MySQL client ran out of memory
error message.Repro:
then restart the server. After restarting the server, run
SELECT 1
or any query.Note:
show create view v
should still work with a warning, but currently in Dolt it throws an error, which causes the client not be able to connect to the restarted server.Workaround is to use mysql client with
-A
flag option, which disables automatic rehashing.The text was updated successfully, but these errors were encountered: