Active
Project:
Drupal core
Version:
main
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2026 at 07:57 UTC
Updated:
24 Nov 2026 at 07:57 UTC
Jump to comment: Most recent
Add an issue to 'find a better way to do this' per the following code block. The todo will be converted to an @todo in another issue.
// Add additional arguments as a fake condition.
// XXX: this doesn't work, because PDO mandates that all bound arguments
// are used on the query. TODO: Find a better way to do this.
if (!empty($additional_arguments)) {
// $query->where('1 = 1', $additional_arguments);
// $count_query->where('1 = 1', $additional_arguments);
}
The block of code was added in a626abb2.
Comments