Add type detection. Needed by pdo_dblib