Page 1 of 1

A few ones

PostPosted: October 22nd, 2014, 1:41 am
by davidbcn
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.