Skip to content

Add source table and database to field metadata in wire responses#2235

Merged
fulghum merged 1 commit intomainfrom
fulghum/dolt-7247
Jan 4, 2024
Merged

Add source table and database to field metadata in wire responses#2235
fulghum merged 1 commit intomainfrom
fulghum/dolt-7247

Conversation

@fulghum
Copy link
Copy Markdown
Contributor

@fulghum fulghum commented Jan 4, 2024

The field metadata messages we were sending back for a result set did not include the source table and source database for fields. This caused a behavior difference from MySQL where the table-qualified column name (e.g. table1.ID) would not work with Dolt when using the MySQL Java Connector library. See dolthub/dolt#7247 for more details.

Updates to unit tests for the schemaToFields code are in this PR, and I'll follow up with a PR in the Dolt repo that updates our MySQL Connector library integration tests to add coverage for the table-qualified column name.

@fulghum fulghum requested a review from jycor January 4, 2024 20:22
Copy link
Copy Markdown
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants