laravel-pg-extensions icon indicating copy to clipboard operation
laravel-pg-extensions copied to clipboard

PDO::PARAM_LOB

Open nathanblogs opened this issue 1 year ago • 0 comments

Hi,

Is there a reason for not handling resource types when PDO::ATTR_EMULATE_PREPARES is set ?

I believe this should be added to the bindValues switch statement, to be in-line with laravel ?

case is_resource($value):
    $dataType = PDO::PARAM_LOB;
    break;

https://github.com/umbrellio/laravel-pg-extensions/blob/master/src/PostgresConnection.php#L82 https://github.com/laravel/framework/blob/10.x/src/Illuminate/Database/Connection.php#L721

nathanblogs avatar Nov 10 '23 06:11 nathanblogs