--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Connection instance method for versions of 8.1 and higher of libpq uses PQescapeByteaConn, which is safer. Avoid calling as a class method, the class method uses the deprecated PQescapeBytea() API function.
- !ruby/struct:SM::Flow::P 
  body: Use the instance method version of this function, it is safer than the class method.
- !ruby/struct:SM::Flow::P 
  body: Escapes binary data for use within an SQL command with the type <tt>bytea</tt>.
- !ruby/struct:SM::Flow::P 
  body: "Certain byte values must be escaped (but all byte values may be escaped) when used as part of a <tt>bytea</tt> literal in an SQL statement. In general, to escape a byte, it is converted into the three digit octal number equal to the octet value, and preceded by two backslashes. The single quote (') and backslash (\\) characters have special alternative escape sequences. #escape_bytea performs this operation, escaping only the minimally required bytes."
- !ruby/struct:SM::Flow::P 
  body: Consider using exec_params, which avoids the need for passing values inside of SQL commands.
full_name: PGconn::escape_bytea
is_singleton: true
name: escape_bytea
params: |
  conn.escape_bytea( string ) -> String 
  PGconn.escape_bytea( string ) -> String # DEPRECATED

visibility: public
