Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method Sql.pgsql()->quotebinary()


Method quotebinary

string quotebinary(string s)

Returns

The given string, but escapes/quotes all contained magic characters for binary (bytea) arguments in textual SQL-queries.

Note

Quoting must not be done for parameters passed in bindings.

See also

big_query(), quote()

Note

This function is PostgreSQL-specific, and thus it is not available through the generic SQL-interface.