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

Method Sql.mysql()->utf8_encode_query()


Method utf8_encode_query

string utf8_encode_query(string q, function(string:string) encode_fn)

Description

Encodes the appropriate sections of the query with encode_fn. Everything except strings prefixed by an introducer (i.e. _something or N) is encoded.