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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap tsvector attributes with coalesce before join #4674

Merged
merged 1 commit into from Dec 9, 2019
Merged

Wrap tsvector attributes with coalesce before join #4674

merged 1 commit into from Dec 9, 2019

Conversation

geo-mathijs
Copy link
Contributor

@geo-mathijs geo-mathijs commented Dec 7, 2019

Description of what you did:

Columns are now wrapped in coalesce before joining the tsvectors because a single NULL would result in the entire tsvector being NULL. This used to result in unexpected behaviour where a single NULL would disable searching for relations in the content-manager when using postgres as the backend.

My PR is a:

  • 馃挜 Breaking change
  • 馃悰 Bug fix
  • 馃拝 Enhancement
  • 馃殌 New feature

Main update on the:

  • Admin
  • Documentation
  • Framework
  • Plugin

Manual testing done on the following databases:

  • Not applicable
  • MongoDB
  • MySQL
  • Postgres
  • SQLite

Fixed a bug where joining multiple tsvector attributes results in NULL
because one of the columns contains NULL. The expected behaviour is to
ignore that column instead, which is achieved by setting it to an empty
string
@alexandrebodin alexandrebodin added this to the 3.0.0-beta.18 milestone Dec 9, 2019
Copy link
Member

@alexandrebodin alexandrebodin left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you for your contribution !

@alexandrebodin alexandrebodin merged commit 874df18 into strapi:master Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: core:strapi Source is core/strapi package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants