diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 028d6b055ffbe436511c987b69814598ee6876d1..a8567112fe9ad9294091c040cd19ffb388552e23 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1145,7 +1145,7 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables) switch (variables[i].type){ case SHOW_LONG: case SHOW_LONG_CONST: - net_store_data(&packet2,(longlong) *(ulong*) variables[i].value); + net_store_data(&packet2,(int32) *(ulong*) variables[i].value); break; case SHOW_BOOL: net_store_data(&packet2,(ulong) *(bool*) variables[i].value ?