Fix warning compiling core_stmt.cpp (#1275) (#1277)

converting to non-pointer type 'long int' from NULL

Co-authored-by: Michele Locati <michele@locati.it>
This commit is contained in:
Jenny Tam 2021-07-05 14:19:29 -07:00 committed by GitHub
parent cc92fc5701
commit b3b2acea8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3101,7 +3101,7 @@ void sqlsrv_param_tvp::process_param(_Inout_ sqlsrv_stmt* stmt, _Inout_ zval* pa
column_size = num_rows;
buffer = NULL;
buffer_length = NULL;
buffer_length = 0;
strlen_or_indptr = (num_columns == 0)? SQL_DEFAULT_PARAM : SQL_DATA_AT_EXEC;
} else {
// This is one of the constituent columns of the table-valued parameter