mirror of
https://github.com/php/pecl-database-ibm_db2.git
synced 2026-03-23 23:02:16 +01:00
[IBMi] Use buffer's real length for pconnect check
The buffer is an unknown state, but likely all zeroes. Using zero here would result in spurious messages in the job log.
This commit is contained in:
@@ -2386,7 +2386,7 @@ static int _php_db2_connect_helper( INTERNAL_FUNCTION_PARAMETERS, conn_handle **
|
||||
}
|
||||
/* bind col */
|
||||
if (rc == SQL_SUCCESS) {
|
||||
rc = SQLBindCol((SQLHSTMT)try_stmt_res->hstmt, 1, SQL_CHAR, try_date, strlen(try_date), &try_date_len);
|
||||
rc = SQLBindCol((SQLHSTMT)try_stmt_res->hstmt, 1, SQL_CHAR, try_date, 32, &try_date_len);
|
||||
}
|
||||
/* fetch data */
|
||||
if (rc == SQL_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user