Displaying 1 result from an estimated 1 matches for "escape_bytea".
2005 Dec 21
1
Escape bytea binary data in postgres SQL
Hi!
I want to escape binary data correctly either manually or using some
pre-defined function that does this for me!
I have found on the web: PGconn.escape_bytea but I only get "undefined
method". Any ideas, what is the correct way of doing this my self?
I''m using Rails (WEBrick) under Windows XP with postgre-pr 0.4.0
I have tried:
s_buffer = s_buffer.gsub(/['']/, ''\\047'')
s_buffer = s_buffer.gsub(/[\\]/, ...