pike.git / lib / modules / Sql.pmod / mysql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:1:   /* -  * $Id: mysql.pike,v 1.28 2006/08/15 14:49:22 grubba Exp $ +  * $Id: mysql.pike,v 1.29 2006/08/15 14:50:39 grubba Exp $    *    * Glue for the Mysql-module    */      //! Implements the glue needed to access the Mysql-module from the generic   //! SQL module.      #pike __REAL_VERSION__      #if constant(Mysql.mysql)
pike.git/lib/modules/Sql.pmod/mysql.pike:569:    new_send_charset = "latin1"; \    else { \    query = utf8_encode_query (query, string_to_utf8); \    new_send_charset = "utf8"; \    } \    } \    \    if (new_send_charset != send_charset) { \    if (mixed err = \    ::big_query ("SET character_set_client=" + new_send_charset)) { \ -  if (new_send_charset = "utf8") \ +  if (new_send_charset == "utf8") \    predef::error ("The query is a wide string " \    "and the MySQL server doesn't support UTF-8: %s\n", \    describe_error (err)); \    else \    throw(err); \    } \    send_charset = new_send_charset; \    } \    } \    \