Skip to content

Commit 344ff5d

Browse files
committed
fixed fix #69975 wrt. ODBCVER < 0x0300
1 parent d870683 commit 344ff5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/odbc/php_odbc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,14 +1007,14 @@ int odbc_bindcols(odbc_result *result TSRMLS_DC)
10071007
rc = SQLColAttributes(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_DISPLAY_SIZE,
10081008
NULL, 0, NULL, &displaysize);
10091009
}
1010-
#endif
1010+
10111011
/* Workaround for drivers that report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0 (bug #69975) */
10121012
if (result->values[i].coltype == SQL_WVARCHAR && displaysize == 0) {
10131013
result->values[i].coltype = SQL_WLONGVARCHAR;
10141014
result->values[i].value = NULL;
10151015
break;
10161016
}
1017-
1017+
#endif
10181018
/* Workaround for Oracle ODBC Driver bug (#50162) when fetching TIMESTAMP column */
10191019
if (result->values[i].coltype == SQL_TIMESTAMP) {
10201020
displaysize += 3;

0 commit comments

Comments
 (0)