From b3b2acea8fb4b5875fabc2414471d72aaa3dd082 Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Mon, 5 Jul 2021 14:19:29 -0700 Subject: [PATCH] Fix warning compiling core_stmt.cpp (#1275) (#1277) converting to non-pointer type 'long int' from NULL Co-authored-by: Michele Locati --- source/shared/core_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared/core_stmt.cpp b/source/shared/core_stmt.cpp index c3f0f25f..324ffcf0 100644 --- a/source/shared/core_stmt.cpp +++ b/source/shared/core_stmt.cpp @@ -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