Add type detection. Needed by pdo_dblib
bug #9747 [DoctrineBridge] Fix: Add type detection. Needed by pdo_dblib (iamluc)

This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9747).

Discussion
----------

[DoctrineBridge] Fix: Add type detection. Needed by pdo_dblib

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

75f5cc3 Add type detection. Needed by pdo_dblib