mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
Bug: when stringify fetch mode is on, and the driver returns a string instead
of a stream for a LOB parameter, PDO would incorrectly return NULL for that column.
This commit is contained in:
parent
268ac81e39
commit
2618322506
@ -517,6 +517,11 @@ static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *typ
|
||||
} else {
|
||||
ZVAL_NULL(dest);
|
||||
}
|
||||
} else {
|
||||
ZVAL_STRINGL(dest, value, value_len, !caller_frees);
|
||||
if (caller_frees) {
|
||||
caller_frees = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user