close
Skip to content

Encoding an array of composite types fails with a segmentation fault #620

Description

@jacamera

Environment:

  • Ubuntu 24.04.1 LTS
  • ruby 3.2.3
  • pg 1.5.9

Isolated Example:

require 'pg'

map = PG::TypeMapByColumn.new([PG::TextEncoder::Integer.new, PG::TextEncoder::String.new])
record_encoder = PG::TextEncoder::Record.new(type_map: map)
array_encoder = PG::TextEncoder::Array.new(elements_type: record_encoder)
array_encoder.encode([[123, 'Main St.']])

Log Output:
log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions