Skip to content

Relax error handling for COM_FIELD_LIST to avoid mysql client disconnecting#463

Merged
fulghum merged 1 commit into
mainfrom
fulghum/comfieldlist
Apr 21, 2026
Merged

Relax error handling for COM_FIELD_LIST to avoid mysql client disconnecting#463
fulghum merged 1 commit into
mainfrom
fulghum/comfieldlist

Conversation

@fulghum
Copy link
Copy Markdown

@fulghum fulghum commented Apr 21, 2026

The mysql client sends COM_FIELD_LIST commands by default (unless the -A option is given) to collect field metadata for all tables/views. If a view has a broken definition, then it was returning an error, which caused the mysql client to disconnect and reconnect. This change ignores errors when querying tables/views for a COM_FIELD_LIST command, which fixes the client disconnect issue and lets us match the MySQL server's behavior.

GMS CI Tests: dolthub/go-mysql-server#3518
Dolt CI Tests: dolthub/dolt#10912

Fixes dolthub/dolt#10634

@fulghum fulghum requested a review from zachmu as a code owner April 21, 2026 19:19
@fulghum fulghum force-pushed the fulghum/comfieldlist branch from 4592570 to af77486 Compare April 21, 2026 19:37
@fulghum fulghum merged commit 1032eb2 into main Apr 21, 2026
4 of 7 checks passed
@fulghum fulghum deleted the fulghum/comfieldlist branch April 21, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MySQL client is unusable when there's an invalid view in dolt db

2 participants