Skip to content

Simplify NpgsqlRangeTypeMapping - #420

Merged
roji merged 1 commit into
npgsql:devfrom
austindrenski:range-type-mapping
May 22, 2018
Merged

roji merged 1 commit into
npgsql:devfrom
austindrenski:range-type-mapping

Conversation

@austindrenski

@austindrenski austindrenski commented May 21, 2018 •

Copy link
Copy Markdown
Contributor

Submitting based on npgsql/npgsql#1939 (comment):

Unrelated, but I just realized I replicated this logic in the EF Core provider's NpgsqlRangeTypeMapping.GenerateNonNullSqlLiteral(). Do you want to compare the two and submit a PR which makes EF Core simply call ToString()?

An important consideration for this PR is the loss of specialized handling for the bounds.

. Note that this commit removes subtype mapping handling.
@roji

roji commented May 22, 2018

Copy link
Copy Markdown
Member

Thanks, looks good. The build is failing for unrelated reasons, will fix and merge your PR soon.

@roji
roji merged commit 01879d5 into npgsql:dev May 22, 2018
@austindrenski
austindrenski deleted the range-type-mapping branch May 22, 2018 18:17
@austindrenski austindrenski self-assigned this Aug 16, 2018
@roji roji added cleanup and removed refactor labels May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants