pike.git
/
lib
/
modules
/
Sql.pmod
/
mysql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/mysql.pike:1:
/*
-
* $Id: mysql.pike,v 1.
39
2007
/
05
/
26
13
:
53:
26 mast Exp $
+
* $Id: mysql.pike,v 1.
40
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:797:
// "soname", "sql_big_selects", "sql_big_tables", "sql_log_off", // "sql_log_update", "sql_low_priority_updates", "sql_select_limit", // "sql_small_result", "sql_warnings", "status", "straight_join", "string", // "tables", "temporary", "text", "time", "timestamp", "tinytext", // "trailing", "type", "use", "using", "varbinary", "variables", "with", // "write", "year" ])[ 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";