Skip to content

Bug fix for #323#408

Merged
roji merged 2 commits intonpgsql:devfrom
austindrenski:range-operators-patch
May 15, 2018
Merged

Bug fix for #323#408
roji merged 2 commits intonpgsql:devfrom
austindrenski:range-operators-patch

Conversation

@austindrenski
Copy link
Contributor

The NpgsqlRangeTranslator merged in #323 uses nameof(...) without checking the declaring type. This returns the unqualified name, such that all methods named Contains (for example) that reach this translator are translated to the range operator.

This commit adds a check to screen for the declaring type.

…hecking the declaring type. This returns the unqualified name, such that all methods named Contains that reach this translator are handled. This commit adds a check to screen for the declaring type.
@roji roji merged commit 84cba1b into npgsql:dev May 15, 2018
@roji
Copy link
Member

roji commented May 15, 2018

Oops, missed that... Thanks for the fix!

@austindrenski austindrenski deleted the range-operators-patch branch May 27, 2018 19:36
@austindrenski austindrenski self-assigned this Aug 16, 2018
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