Added coverage to DDC-2524. Updated DDC-1719 to fix related DBAL bug.
Merge pull request #743 from doctrine/DDC-2524

Added coverage to DDC-2524. Updated DDC-1719 to fix related DBAL bug.