Skip to content
Snippets Groups Projects
Commit 47cc6d54 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Fixed a bug where an invalid "SET character_set_results = unicode" could be

sent when unicode decode mode is disabled.

Rev: lib/modules/Sql.pmod/mysql.pike:1.43
parent 0d827738
Branches
Tags
No related merge requests found
/* /*
* $Id: mysql.pike,v 1.42 2008/06/28 16:49:55 nilsson Exp $ * $Id: mysql.pike,v 1.43 2008/11/26 01:02:57 mast Exp $
* *
* Glue for the Mysql-module * Glue for the Mysql-module
*/ */
...@@ -186,7 +186,7 @@ void set_unicode_decode_mode (int enable) ...@@ -186,7 +186,7 @@ void set_unicode_decode_mode (int enable)
} }
else { else {
CH_DEBUG("Disabling unicode decode mode.\n"); CH_DEBUG("Disabling unicode decode mode.\n");
::big_query ("SET character_set_results = " + get_charset()); ::big_query ("SET character_set_results = " + ::get_charset());
utf8_mode &= ~UNICODE_DECODE_MODE; utf8_mode &= ~UNICODE_DECODE_MODE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment