diff --git a/source/shared/core_stmt.cpp b/source/shared/core_stmt.cpp index fe69c58a1..f88f5a3b0 100644 --- a/source/shared/core_stmt.cpp +++ b/source/shared/core_stmt.cpp @@ -2508,6 +2508,9 @@ void sqlsrv_param::bind_param(_Inout_ sqlsrv_stmt* stmt) } core::SQLBindParameter(stmt, param_pos + 1, direction, c_data_type, sql_data_type, column_size, decimal_digits, buffer, buffer_length, &strlen_or_indptr); + if (!stmt->conn->ce_option.enabled) { + sql_data_type = SQL_UNKNOWN_TYPE; + } } void sqlsrv_param::init_data_from_zval(_Inout_ sqlsrv_stmt* stmt)