umbrellio / laravel-pg-extensions

Laravel extensions for Postgres
MIT License
90 stars 18 forks source link

PDO::PARAM_LOB #80

Open nathanblogs opened 8 months ago

nathanblogs commented 8 months ago

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