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.
27
2006/08/
12
03
:
27
:
27
mast
Exp $
+
* $Id: mysql.pike,v 1.
28
2006/08/
15
14
:
49
:
22
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:574:
} \ \ if (new_send_charset != send_charset) { \ if (mixed err = \ ::big_query ("SET character_set_client=" + new_send_charset)) { \ 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;
\
+
throw
(
err
)
; \
} \ send_charset = new_send_charset; \ } \ } \ \ int|object res = ::do_query(query); \ \ if (restore_charset) { \ if (send_charset && (<"latin1", "utf8">)[charset]) \ send_charset = charset; \