I would like to alter the structure of the query generated from db_select
of Drupal. I would like to include a 'FORCE INDEX()' with join()
function. I saw a documentation about Drupal Extenders
here. But I am not getting where to add the new class. There are no more examples available online. Please help
Asked
Active
Viewed 49 times
0

Arun
- 3,640
- 7
- 44
- 87
-
use addExpression ?https://api.drupal.org/api/drupal/includes!database!select.inc/function/SelectQuery%3A%3AaddExpression/7.x – Fky Sep 07 '18 at 10:20
-
Possible duplicate of [Add FORCE INDEX with drupal query builder](https://stackoverflow.com/questions/52215360/add-force-index-with-drupal-query-builder) – Fky Sep 07 '18 at 10:22