Skip to content

ActiveRecord does not serialize arrays for native Postgres array type columns  #12261

Closed
@tadast

Description

@tadast

The issue occurs when using #update_column, #update_columns and #update_all on a column of native postgres array type.

SomeTable.first.update_column(:array_column, ['value_1', 'value_2'])
>> UPDATE "some_tables" SET "array_column" = 'value_1','value_2'...

I think the issue is here where the value is passed in to the method with no information about the column type and therefore postgres specific quoting can not be invoked.

If my thinking is correct I can try to fix this

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions