Skip to content

Commit

Permalink
Merge pull request #597 from larskanis/fix-inspect-on-ruby-head
Browse files Browse the repository at this point in the history
Fix spec for TypeMapByColumn#inspect on ruby-head
  • Loading branch information
larskanis authored Oct 23, 2024
2 parents 626102e + 85cbf3b commit a12131d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/pg/type_map_by_column_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def initialize
hash_param_nil = { value: nil, type: 17, format: 1 }
res = @conn.exec_params( "SELECT $1::text, $2::text",
[ hash_param_bin, hash_param_nil ], 0, col_map )
expect( res.values ).to eq( [["{:value=>\"\\x00\\xFF\", :type=>17, :format=>1}", "{:value=>nil, :type=>17, :format=>1}"]] )
expect( res.values ).to eq( [[{value:"\x00\xFF".b, type:17, format:1}.inspect, {value:nil, type:17, format:1}.inspect]] )
end

it "shouldn't allow param mappings with different number of fields" do
Expand Down

0 comments on commit a12131d

Please sign in to comment.