Skip to content

Update binding parameters is not supported for drivers other than MySQL and MariaDB. #53405

@kts27366

Description

@kts27366

Laravel Version

11.30

PHP Version

8.3.6

Database Driver & Version

PostgreSQL 17

Description

Binding parameters is not supported for drivers other than MySQL and MariaDB, because in prepareBindingsForUpdate(), only MySQL and MariaDB perform the action

$values = Arr::flatten(array_map(fn ($value) => value($value), $values));

Other drivers do not include this step

#50030

Steps To Reproduce

Order::whereIn('id', [1,2,3])->update([ 'status' => DB::query()->selectRaw("CASE `{$uniqueKey}` {$cases} ELSE `{$column}` END", $bindings) ]) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions