Permalink
Browse files

fixed bug in RowDescription, where a wrong value was collected

  • Loading branch information...
1 parent 47f3b11 commit 83a1a4151441fbde88c7f3b03953953231162cfa @mneumann mneumann committed Nov 18, 2004
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/postgres-pr/message.rb
View
2 lib/postgres-pr/message.rb
@@ -399,6 +399,7 @@ def parse(buffer)
class RowDescription < Message
register_message_type ?T
+ fields :fields
class FieldInfo < Struct.new(:name, :oid, :attr_nr, :type_oid, :typlen, :atttypmod, :formatcode); end
@@ -430,6 +431,7 @@ def parse(buffer)
f.typlen = buffer.read_int16_network
f.atttypmod = buffer.read_int32_network
f.formatcode = buffer.read_int16_network
+ f
}
end
end

0 comments on commit 83a1a41

Please sign in to comment.