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.
26
2006/08/12 03:
06
:
06
mast Exp $
+
* $Id: mysql.pike,v 1.
27
2006/08/12 03:
27
:
27
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:705:
{ if (options) { string charset = options->mysql_charset_name || "latin1"; if (charset == "unicode") options->mysql_charset_name = "utf8"; ::create(host||"", database||"", user||"", password||"", options); update_unicode_encode_mode_from_charset (lower_case (charset));
-
if (options->unicode_decode_mode)
+
if (
charset == "unicode")
+
utf8_mode |= UNICODE_DECODE_MODE;
+
else if (
options->unicode_decode_mode)
set_unicode_decode_mode (1); } else { ::create(host||"", database||"", user||"", password||""); update_unicode_encode_mode_from_charset ("latin1"); } } #else constant this_program_does_not_exist=1; #endif /* constant(Mysql.mysql) */