Skip to content

Conversation

AlexKerman
Copy link
Contributor

This PR make table alias accessible in data reader.
Ref #1521

@bgrainger
Copy link
Member

Thanks for the contribution! I'll take a look soon. (Mostly just want to see if there's precedent in other ADO.NET providers.)

It would be good to include some tests for this new behaviour.

@bgrainger
Copy link
Member

Npgsql adds a TableOID property: https://github.com/npgsql/npgsql/blob/32eb7097c81e3dc6e3cdc59c2f19592883f00c77/src/Npgsql/Schema/NpgsqlDbColumn.cs#L199-L202

SqlClient doesn't appear to have public DbColumn-derived type.

@bgrainger bgrainger merged commit e132a64 into mysql-net:master Oct 28, 2024
22 checks passed
@bgrainger
Copy link
Member

Thanks for the contribution!

@AlexKerman
Copy link
Contributor Author

AlexKerman commented Oct 29, 2024

Thanks for the contribution!

Thank you for your research. It very useful for me because I doing postgres support for my tool. Unfortunately I don't know how to test this properly. I had researched test for ProviderType field and didn't found out how to insert test for my field corectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unable to get access to table alias name in data reader
2 participants