- Issue created by @greenskin
- πΊπΈUnited States greenskin
Here's a patch with the switch from using
addWhereExpression()
toaddWhere()
. - Status changed to Needs review
about 1 year ago 3:42am 30 April 2024 - last update
about 1 year ago 72 pass - last update
12 months ago Patch Failed to Apply - πΊπΈUnited States greenskin
Updated patch that conditionally uses `addWhere()` when the query object does not have an `addWhereExpression()` method.
- last update
12 months ago 72 pass - π΅π±Poland Graber
Why do you want to use addWhere conditionally and not in all cases?
- πΊπΈUnited States greenskin
We had come across an instance where the value had to be added as an expression (it used a mysql date function). However the original issue we had was an incompatibility with google_analytics_reports query (see https://git.drupalcode.org/project/google_analytics_reports/-/blob/4.0.x..., doesn't have an addWhereExpression() method) and the simple addWhere() was sufficient. If I recall correctly, the field returned the mysql date function as the field value.
- First commit to issue fork.
- π΅π±Poland Graber
Let's try to change all
addWhereExpression
toaddWhere
and see what will be the result. Just remembered search_api Views query also doesn't haveaddWhereExpression
.