mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
fixed fix #69975 wrt. ODBCVER < 0x0300
This commit is contained in:
parent
d870683d6b
commit
344ff5dd4c
@ -1007,14 +1007,14 @@ int odbc_bindcols(odbc_result *result TSRMLS_DC)
|
||||
rc = SQLColAttributes(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_DISPLAY_SIZE,
|
||||
NULL, 0, NULL, &displaysize);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Workaround for drivers that report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0 (bug #69975) */
|
||||
if (result->values[i].coltype == SQL_WVARCHAR && displaysize == 0) {
|
||||
result->values[i].coltype = SQL_WLONGVARCHAR;
|
||||
result->values[i].value = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
#endif
|
||||
/* Workaround for Oracle ODBC Driver bug (#50162) when fetching TIMESTAMP column */
|
||||
if (result->values[i].coltype == SQL_TIMESTAMP) {
|
||||
displaysize += 3;
|
||||
|
Loading…
Reference in New Issue
Block a user