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 binding arbitrary params as part of a value expression in the query filter at Filter::applyWhere() with PostgreSQL #1439

Merged
merged 2 commits into from
May 17, 2021

Conversation

phansys
Copy link
Member

@phansys phansys commented May 7, 2021

Subject

Fix binding arbitrary params as part of a value expression in the query filter at Filter::applyWhere() with PostgreSQL.

I am targeting this branch, because this change respects BC.

Closes #1389.

Changelog

### Fixed
- Bind arbitrary params as part of a value expression in the query filter at `Filter::applyWhere()` with PostgreSQL.

@phansys phansys force-pushed the pr_1431 branch 2 times, most recently from d156f19 to d3964f6 Compare May 7, 2021 02:20
@phansys phansys force-pushed the pr_1431 branch 3 times, most recently from b465938 to dfefcc9 Compare May 16, 2021 02:57
@phansys phansys changed the title Pr 1431 Fix binding arbitrary params as part of a value expression in the query filter at Filter::applyWhere() with PostgreSQL May 16, 2021
@phansys phansys added the patch label May 16, 2021
@phansys phansys requested a review from a team May 16, 2021 03:00
@phansys phansys marked this pull request as ready for review May 16, 2021 03:00
@phansys phansys requested a review from franmomu May 16, 2021 03:03
@franmomu
Copy link
Member

@axzx can you please try this fix?

Should we add the commit from #1431 here?

VincentLanglet
VincentLanglet previously approved these changes May 16, 2021
@@ -204,8 +205,7 @@ private function addOrParameter(BaseProxyQueryInterface $query, $parameter): voi

if (null === $groupName) {
// Add the ":sonata_admin_datagrid_filter_query_marker" parameter as marker for the `Orx` expression.
Copy link
Member

Choose a reason for hiding this comment

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

Should the comment be updated ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Updated.
Thank you.

@VincentLanglet VincentLanglet requested a review from a team May 16, 2021 20:53
@VincentLanglet VincentLanglet merged commit e46c6c4 into sonata-project:3.x May 17, 2021
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.

An exception occurred while executing autocomplete filter
3 participants