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

Fix npgsql/EntityFramework6.Npgsql#78 support citext type #79

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SalvatoreRossi
Copy link

No description provided.

@roji
Copy link
Member

roji commented Sep 17, 2017

@rwasef1830 you may want to take a look at this PR as well for 3.2.0, let me know.

Copy link
Contributor

@rwasef1830 rwasef1830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a unit test for insert / select / query functions. It should be noted that this scenario may already be working with the current releases under the "unknown" string type default behavior or automatic casting by postgresql (since citext should be compatible with text).

@@ -162,7 +162,8 @@ public override TypeUsage GetEdmType([NotNull] TypeUsage storeType)
return TypeUsage.CreateStringTypeUsage(primitiveType, isUnicode, false);
case "text":
case "xml":
return TypeUsage.CreateStringTypeUsage(primitiveType, isUnicode, false);
case "citext":
return TypeUsage.CreateStringTypeUsage(primitiveType, isUnicode, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: indentation

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.

3 participants