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:
Wez Furlong 2005-11-25 03:23:17 +00:00
parent 268ac81e39
commit 2618322506

View File

@ -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;