I want to do some debugging with a db_insert
query. I tried to use the addTag()
method, but I got an error:
$query = db_insert('nodes') ->addTag('my query');
PHP Fatal error: Call to undefined method InsertQuery_mysql::addTag()
Is there a way I can tag this query or otherwise make it available to hook_query_alter
?
Edit This query is not giving me the expected results, and I want to know why. To see why, I need to see the query with its values. Looking in the documentation for InsertQuery_mysql, it appears there's no getArguments()
method.
Is there any way to see the values that are being inserted?