A few ones
1 post
• Page 1 of 1
A few ones
A few things more I have come accross, trying to insert binary data through PDO:
1)
No mapping exists from object type PHP.Core.PhpBytes to a known managed provider native type.
Happens when trying to do a bindValue of a PHP Byte array, for a binary SQL Column. Just try to do anything with a binary column in the database, throwing many exceptions.
2)
PDOStatement.bindParam is not implemented, I tried to implement based on the bindValue implementation (documentation states they are exactly the same but bindValue uses reference to value)
3)
$blobs[$blob_count] = fopen('php://memory', 'a');
fwrite($blobs[$blob_count], $value);
rewind($blobs[$blob_count]);
php://memory is not a recognized stream, I guess it is not implemented.
1)
No mapping exists from object type PHP.Core.PhpBytes to a known managed provider native type.
Happens when trying to do a bindValue of a PHP Byte array, for a binary SQL Column. Just try to do anything with a binary column in the database, throwing many exceptions.
2)
PDOStatement.bindParam is not implemented, I tried to implement based on the bindValue implementation (documentation states they are exactly the same but bindValue uses reference to value)
3)
$blobs[$blob_count] = fopen('php://memory', 'a');
fwrite($blobs[$blob_count], $value);
rewind($blobs[$blob_count]);
php://memory is not a recognized stream, I guess it is not implemented.
- davidbcn
- Posts: 87
- Joined: September 10th, 2014, 3:07 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests