[development] db_rewrite_sql

Ashraf Amayreh mistknight at gmail.com
Wed Apr 18 01:16:24 UTC 2007


Looking at this function which raps db_query calls and allows modules to
alter the query, I was wondering how a hook_db_rewrite_sql is supposed to
distinguish the queries that it wants to alter from the queries that it
wants to leave alone?

Only way I can think of is to do a string match on large parts of the
original query, but isn't this quite messy, or am I missing something? Could
someone please shed the light on this issue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070418/57c4bb65/attachment.htm 


More information about the development mailing list