mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fixed possible usage of uninitialized value
This commit is contained in:
commit
886a34b1cc
@ -993,6 +993,9 @@ int odbc_bindcols(odbc_result *result)
|
||||
default:
|
||||
rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), colfieldid,
|
||||
NULL, 0, NULL, &displaysize);
|
||||
if (rc != SQL_SUCCESS) {
|
||||
displaysize = 0;
|
||||
}
|
||||
#if defined(ODBCVER) && (ODBCVER >= 0x0300)
|
||||
if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO && colfieldid == SQL_DESC_OCTET_LENGTH) {
|
||||
SQLINTEGER err;
|
||||
@ -1012,6 +1015,9 @@ int odbc_bindcols(odbc_result *result)
|
||||
charextraalloc = 1;
|
||||
rc = SQLColAttributes(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_DISPLAY_SIZE,
|
||||
NULL, 0, NULL, &displaysize);
|
||||
if (rc != SQL_SUCCESS) {
|
||||
displaysize = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Workaround for drivers that report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0 (bug #69975) */
|
||||
|
Loading…
Reference in New Issue
Block a user