When I check "SHOW PROCESSLIST" in phpMyAdmin I can see lots of queries where argument-integers are being inserted as strings (with single quotation marks).
I'm wondering if this is due to the way phpmyadmin reports the queries (if it puts every argument between quotation marks) of if it is db_select that puts every argument between quotation marks.
An example of my code where integers are being used as arguments:
$select->join('taxonomy_index', 't_'.$key, 't_'.$key.'.nid = n.nid AND t_'.$key.'.tid = :tid_' . $key, array(':tid_'.$key => (int)$tid));
$select->condition('t_'.$key.'.tid', (int)$tid);
As you can see I explicitly write (int)$tid but in my query log I can see the following:
... WHERE (t_0.tid = '10') ...
The big question is: How can I be sure that integers are being treated as integers in my queries? I don't want MySQL having to transform strings to integers.