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.27 2007/05/03 14:09:30 mast Exp $ +  * $Id: mysql.pike,v 1.28 2008/01/09 14:26:07 mast 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:717:    "sql_warnings", "straight_join", "starting", "status", "string",    "table", "tables", "temporary", "terminated", "text", "then", "time",    "timestamp", "tinyblob", "tinytext", "tinyint", "trailing", "to",    "type", "use", "using", "unique", "unlock", "unsigned", "update",    "usage", "values", "varchar", "variables", "varying", "varbinary",    "with", "write", "when", "where", "year", "year_month", "zerofill",    >)[ lower_case(name) ];   }      static void create(string|void host, string|void database, -  string|void user, string|void password, +  string|void user, string|void _password,    mapping(string:string|int)|void options)   { -  +  string password = _password; +  _password = "CENSORED"; +     if (options) {    string charset = options->mysql_charset_name ?    lower_case (options->mysql_charset_name) : "latin1";       int broken_unicode = charset == "broken-unicode";    if (broken_unicode) charset = "unicode";       if (charset == "unicode")    options->mysql_charset_name = "utf8";