Branch: Tag:

2009-04-10

2009-04-10 17:20:20 by Stephen R. van den Berg <srb@cuci.nl>

Setting the charset cannot be done using a parameter.

Rev: lib/modules/Sql.pmod/pgsql.pike:1.65

332:   //! @[get_charset()], @[create()],   //! @url{http://search.postgresql.org/search?u=%2Fdocs%2F&q=character+sets@}   void set_charset(string charset) - { big_query("SET CLIENT_ENCODING TO :charset",([":charset":charset])); + { big_query(sprintf("SET CLIENT_ENCODING TO '%s'",quote(charset)));   }      //! @returns