Skip to content

Commit 562977e

Browse files
committed
IBM i and LUW diff args for SQLGetData
1 parent 551d56c commit 562977e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

ibm_db2.c

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6008,7 +6008,15 @@ PHP_FUNCTION(db2_free_stmt)
60086008
/* }}} */
60096009

60106010
/* {{{ static RETCODE _php_db2_get_data(stmt_handle *stmt_res, int col_num, short ctype, void *buff, int in_length, SQLINTEGER *out_length) */
6011-
static RETCODE _php_db2_get_data(stmt_handle *stmt_res, SQLUSMALLINT col_num, SQLSMALLINT ctype, SQLPOINTER buff, SQLLEN in_length, SQLLEN *out_length)
6011+
static RETCODE _php_db2_get_data(stmt_handle *stmt_res, SQLUSMALLINT col_num, SQLSMALLINT ctype, SQLPOINTER buff,
6012+
#ifdef PASE
6013+
SQLINTEGER in_length,
6014+
SQLINTEGER *out_length
6015+
#else
6016+
SQLLEN in_length,
6017+
SQLLEN *out_length
6018+
#endif
6019+
)
60126020
{
60136021
RETCODE rc=SQL_SUCCESS;
60146022

@@ -6118,7 +6126,12 @@ PHP_FUNCTION(db2_result)
61186126
RETCODE rc = 0;
61196127
void *out_ptr = NULL;
61206128
char *out_char_ptr = NULL;
6121-
SQLINTEGER in_length = 0, out_length=-10; /* Initialize out_length to some meaningless value */
6129+
/* Initialize out_length to some meaningless value */
6130+
#ifdef PASE
6131+
SQLINTEGER in_length = 0, out_length=-10;
6132+
#else
6133+
SQLLEN in_length = 0, out_length=-10;
6134+
#endif
61226135
SQLSMALLINT column_type, lob_bind_type= SQL_C_BINARY;
61236136
SQLDOUBLE double_val = 0;
61246137
SQLINTEGER long_val = 0;

0 commit comments

Comments
 (0)