- Issue created by @greenskin
- πΊπΈUnited States greenskin
Here's a patch with the switch from using
addWhereExpression()
toaddWhere()
. - Status changed to Needs review
8 months ago 3:42am 30 April 2024 - last update
8 months ago 72 pass - last update
7 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
7 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.