Fix #DBAL-565

http://www.doctrine-project.org/jira/browse/DBAL-565