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
Environment:
Isolated Example:
Log Output:
log.txt