Subject: | mysql_to_perl_type is not thread safe |
The local variable enum_type in mysql_to_perl_type is declared static
and makes the function non-threadsafe.
Easy fix:
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -326,7 +326,7 @@ free_param(imp_sth_ph_t *params, int num_params)
static enum enum_field_types mysql_to_perl_type(enum enum_field_types type)
{
- static enum enum_field_types enum_type;
+ enum enum_field_types enum_type;
switch (type) {
case MYSQL_TYPE_DOUBLE: