Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make table alias accessible from MySqlDbColumn #1522

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Make table alias accessible from MySqlDbColumn #1522

merged 3 commits into from
Oct 28, 2024

Conversation

AlexKerman
Copy link
Contributor

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

Verified

This commit was signed with the committer’s verified signature.
lforst Luca Forstner
Signed-off-by: AlexKerman <kerman@ormfactory.com>
@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.

Verified

This commit was signed with the committer’s verified signature.
lforst Luca Forstner
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@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