Fix a problem in PDO that cause PDO reconnecting fail.