#288 miss mysql_set_character_set() after mysql4.1.13

open
Andy Dustman
MySQLdb (285)
5
2012-09-19
2009-08-13
sevenj
No

After mysql 4.1.13, the mysql_set_character_set also add .

--- _mysql.c.old 2009-08-13 14:15:17.000000000 +0800
+++ _mysql.c 2009-08-13 14:16:16.000000000 +0800
@@ -1518,7 +1518,7 @@
return PyString_FromString(s);
}

-#if MYSQL_VERSION_ID >= 50007
+#if MYSQL_VERSION_ID >= 50007 || (MYSQL_VERSION_ID >= 40113 && MYSQL_VERSION_ID < 50000)
static char _mysql_ConnectionObject_set_character_setdoc[] =
"Sets the default character set for the current connection.\n\ Non-standard.\n\ @@ -2176,7 +2176,7 @@
METH_VARARGS,
_mysql_ConnectionObject_character_set_namedoc
},
-#if MYSQL_VERSION_ID >= 50007
+#if MYSQL_VERSION_ID >= 50007 || (MYSQL_VERSION_ID >= 40113 && MYSQL_VERSION_ID < 50000)
{
"set_character_set",
(PyCFunction)_mysql_ConnectionObject_set_character_set,

Discussion