Skip to content

Bug fix for #323 - #408

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

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

Conversation

@austindrenski

Copy link
Copy Markdown
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:devMay 15, 2018
@roji

roji commented May 15, 2018

Copy link
Copy Markdown
Member

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

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

@austindrenski@roji