tables()
tables(string $sql) : list<string>|null
Names the tables a query string touches.
Parameters
| string | $sql |
Returns
listThe table names, or null when the query reads or writes a table without braces.
Names the tables a Drupal 7 query string touches, which is what a cache tag is built from.
Drupal 7 wrapped every table in braces, so the names come from there, joins and subselects included. A query that names a table outside braces cannot be read this way and answers null, which callers treat as an access they cannot tag.