-
Notifications
You must be signed in to change notification settings - Fork 230
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
Implement DbFunctions extensions for websearch_to_tsquery (#629) #753
Conversation
So apparently the appveyor test environment still uses PostgreSQL 10. That can't work for this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together. Just a couple of comments included in this review.
We'll need to wait to merge until the CI environment is upgraded. That might not be soon, but it should certainly happen before the 3.0 release in 2019Q1.
src/EFCore.PG/Extensions/NpgsqlFullTextSearchDbFunctionsExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.PG/Extensions/NpgsqlFullTextSearchDbFunctionsExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making these changes. One small nit to address, and then I think this will be good to go.
src/EFCore.PG/Extensions/NpgsqlFullTextSearchDbFunctionsExtensions.cs
Outdated
Show resolved
Hide resolved
test/EFCore.PG.FunctionalTests/Query/FullTextSearchDbFunctionsNpgsqlTest.cs
Outdated
Show resolved
Hide resolved
Thanks for the thorough review. |
Opened appveyor/ci#2805 to request an ETA on PG 11 from AppVeyor. |
Per appveyor/ci#2805, PostgreSQL 11 should be available after the next image update. |
This is no longer blocked by AppVeyor, just by our CI configuration. |
#822 was merged, updating our CI environment. Do you mind rebasing on the latest dev and pushing again? |
I updated, do you get notifications for that? |
@CornedBee We don't necessarily get notifications for new commits, so thanks for the ping. I just merged, so this should be available in the next preview release. Thank you for your contribution! |
@austindrenski @CornedBee the commit is missing updating TryTranslateDbFunctionExtension in Query/ExpressionTranslators/Internal/NpgsqlFullTextSearchMethodTranslator.cs to handle regconfig parameter being a variable. This will cause an exception when regconfig parameter is passed as a variable. A case for the new method needs to be added so that regconfig explicit cast is emitted. |
Yikes, thanks for catching that @rwasef1830... Does one of you have time to submit a patch (and relevant unit tests)? |
This resolves half of issue #629