Skip to content

Commit

Permalink
Reset type after bind param
Browse files Browse the repository at this point in the history
Keep the same behavior as 5.9
Issue #1448
  • Loading branch information
absci committed May 10, 2023
1 parent 3cd248f commit 8fa56f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/shared/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8fa56f3

Please sign in to comment.