Issue #2004350 by Berdir, Dean Reilly: Fixed Unserialised database connection objects don't use Drupal's PDO Statement class.