Finally, I give up Drupal 7.x + ibm_db2 development. It is because ibm_db2's BLOB INSERT/UPDATE/SELECT handling are too complicated... So let's skip it and dig to pdo_ibm directly, as like as case of SQLite ;-)
Most likely, pdo_ibm is just a simple clone of pdo_pgsql implementation, with different connection string handling (surly, we need different schema.*.inc and common.*.inc to serve database dependent differences). Up to this point, I am able to implement install.pdo_ibm.inc without any difficulties.
BTW, we still can't escape from some basic DB2 limitation: SQL0418N with SELECT + LOWER(), e.g. we use LOWER() for username compare. To solving this, we may use CAST().
IMHO, I would like to revamp our programming logic, rather than get rid this limitation with some hybrid implementation. This problem may left for other developers: it seems to be a problem of cross database query implementation, but not a duty of PDO driver development ;-(
Here are some reference message for SQL0418N:








