mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge next-mr -> next-4284.
Fix Bug#50555 "handler commands crash server in my_hash_first()" as a post-merge fix (the new handler tests are not passing otherwise). - in hash.c, don't call calc_hash if ! my_hash_inited(). - add tests and results for the test case for Bug#50555 mysys/hash.c: Assert that the hash is initialized when it's used. sql/set_var.cc: Check that the hash is initalized before using it (Bug#50555)
This commit is contained in:
@ -1468,7 +1468,7 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
|
||||
show_table_options,
|
||||
NULL, NULL))))
|
||||
{
|
||||
packet->append(STRING_WITH_LEN("\n/*!50100"));
|
||||
table->part_info->set_show_version_string(packet);
|
||||
packet->append(part_syntax, part_syntax_len);
|
||||
packet->append(STRING_WITH_LEN(" */"));
|
||||
my_free(part_syntax, MYF(0));
|
||||
@ -2166,7 +2166,8 @@ static bool show_status_array(THD *thd, const char *wild,
|
||||
value= ((char *) status_var + (ulong) value);
|
||||
/* fall through */
|
||||
case SHOW_DOUBLE:
|
||||
end= buff + my_sprintf(buff, (buff, "%f", *(double*) value));
|
||||
/* 6 is the default precision for '%f' in sprintf() */
|
||||
end= buff + my_fcvt(*(double *) value, 6, buff, NULL);
|
||||
break;
|
||||
case SHOW_LONG_STATUS:
|
||||
value= ((char *) status_var + (ulong) value);
|
||||
|
Reference in New Issue
Block a user