Use a simpler way

This commit is contained in:
yitam 2017-02-28 13:20:57 -08:00
parent 357bc95c1e
commit ee1fcb83d5

View file

@ -2008,8 +2008,7 @@ void finalize_output_parameters( sqlsrv_stmt* stmt TSRMLS_DC )
char* str = Z_STRVAL_P( value_z );
SQLLEN str_len = stmt->param_ind_ptrs[ output_param->param_num ];
if( str_len == 0 ) {
str[str_len] = '\0';
core::sqlsrv_zval_stringl( value_z, str, str_len );
ZVAL_STRINGL( value_z, "", 0 );
continue;
}
if( str_len == SQL_NULL_DATA ) {