File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1007,14 +1007,14 @@ int odbc_bindcols(odbc_result *result TSRMLS_DC)
1007
1007
rc = SQLColAttributes (result -> stmt , (SQLUSMALLINT )(i + 1 ), SQL_COLUMN_DISPLAY_SIZE ,
1008
1008
NULL , 0 , NULL , & displaysize );
1009
1009
}
1010
- #endif
1010
+
1011
1011
/* Workaround for drivers that report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0 (bug #69975) */
1012
1012
if (result -> values [i ].coltype == SQL_WVARCHAR && displaysize == 0 ) {
1013
1013
result -> values [i ].coltype = SQL_WLONGVARCHAR ;
1014
1014
result -> values [i ].value = NULL ;
1015
1015
break ;
1016
1016
}
1017
-
1017
+ #endif
1018
1018
/* Workaround for Oracle ODBC Driver bug (#50162) when fetching TIMESTAMP column */
1019
1019
if (result -> values [i ].coltype == SQL_TIMESTAMP ) {
1020
1020
displaysize += 3 ;
You can’t perform that action at this time.
0 commit comments