postgres9 bytea hex format
8.4. Binary Data Types
It seems that postgres 9 always returns hex format for bytea data.
We might want to do this to decode hex back to binary string:
It seems that postgres 9 always returns hex format for bytea data.
We might want to do this to decode hex back to binary string:
[s[1..-1]].pack('H*')
0 retries:
Post a Comment
Note: Only a member of this blog may post a comment.