-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pgsql driver doesn't support streams as BLOB values #5938
Comments
That is correct. Reading blobs from resources is not supported yet. But I think we should throw an exception in that case. |
As I understand, PostgreSQL doesn't support streaming from arbitrary PHP streams to the database (see the source). I believe the stream needs to be read into memory and then handled as a string (as well as |
Well, there's
Let's try that: #5942 |
I recently learned that BLOB and BYTEA are different types in PostgreSQL (documentation). The |
Makes sense. In that case, reading the whole resource into a string is probably the best we can do. Thank you! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Report
Summary
The
pgsql
driver doesn't support streams as BLOB values while at leastmysqli
,pdo_mysql
andpdo_pgsql
do.Current behaviour
An attempt to bind a PHP stream to a
ParameterType::LARGE_OBJECT
parameter of a prepared statement causes type error:How to reproduce
Expected behaviour
The script outputs "test".
The text was updated successfully, but these errors were encountered: