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?
<br><br>Only way I can think of is to do a string match on large parts of the original query, but isn&#39;t this quite messy, or am I missing something? Could someone please shed the light on this issue?<br>