File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -993,6 +993,9 @@ int odbc_bindcols(odbc_result *result)
993
993
default :
994
994
rc = PHP_ODBC_SQLCOLATTRIBUTE (result -> stmt , (SQLUSMALLINT )(i + 1 ), colfieldid ,
995
995
NULL , 0 , NULL , & displaysize );
996
+ if (rc != SQL_SUCCESS ) {
997
+ displaysize = 0 ;
998
+ }
996
999
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
997
1000
if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO && colfieldid == SQL_DESC_OCTET_LENGTH ) {
998
1001
SQLINTEGER err ;
@@ -1012,6 +1015,9 @@ int odbc_bindcols(odbc_result *result)
1012
1015
charextraalloc = 1 ;
1013
1016
rc = SQLColAttributes (result -> stmt , (SQLUSMALLINT )(i + 1 ), SQL_COLUMN_DISPLAY_SIZE ,
1014
1017
NULL , 0 , NULL , & displaysize );
1018
+ if (rc != SQL_SUCCESS ) {
1019
+ displaysize = 0 ;
1020
+ }
1015
1021
}
1016
1022
1017
1023
/* Workaround for drivers that report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0 (bug #69975) */
You can’t perform that action at this time.
0 commit comments