-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Streamline case sensitive behavior of PropertyValueCriteria #4721
Comments
Copied from Slack:
Usually case (in)sensitivity depends on the collation (e.g. the "ci" in I tested the following with MariaDB 10.8: SELECT
JSON_EXTRACT(properties, '$.title.value')
FROM
cr_default_p_graph_node
WHERE
JSON_SEARCH(properties, 'one', 'home', NULL, '$.title.value') IS NOT NULL Will return nodes with a JSON_SEARCH(properties COLLATE utf8mb3_bin, 'one', 'home', NULL, '$.title.value') IS NOT NULL Only nodes matching the exact case are returned. For MySQL (8.0.33) the default behavior seems to be different and JSON_SEARCH works case sensitive JSON_SEARCH(properties, 'one', 'home' COLLATE utf8mb4_unicode_ci, NULL, '$.title.value') IS NOT NULL; => I would suggest that we always specify the collation (for now Note: I'm a bit puzzled that the For PostgreSQL everything is slightly different, but I imagine the solution to be similar.
Yes, for now the adapter supports MariaDB and MySQL (and potentially SQLite?) We'll have to double check that (and also the supported versions), document it and fail early if the platform is not supported (see #4337) |
Great, thanks for testing this out! Sooo weird that they behave differently! |
Streamlines the behavior of the `ContentSubgraph` for string based PropertyValueCriteria to be case sensitive (to be in sync with Neos < 8) Related: #4721
Nut sure wether i like a flag or distinct criteria classes better since |
Currently the
PropertyValueCriteriaInterface
implementations make no assumption on whether the properties are compared in case sensitive or insensitive manner.Tasks
The text was updated successfully, but these errors were encountered: