mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.6'
* PHP-5.6: fixed fix #69975 wrt. ODBCVER < 0x0300
This commit is contained in:
commit
e75cf6b7e4
1 changed files with 2 additions and 2 deletions
|
@ -1013,14 +1013,14 @@ int odbc_bindcols(odbc_result *result)
|
|||
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…
Add table
Add a link
Reference in a new issue