mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
In table cache code, fix casts from longlong to long for
'version' variables. The warnings occur on Windows build, yet they are also are valid on 32bit Unix. Fix is to consistently use 64bit integer on all platforms.
This commit is contained in:
@ -7871,9 +7871,9 @@ static int show_table_definitions(THD *thd, SHOW_VAR *var, char *buff,
|
||||
static int show_flush_commands(THD *thd, SHOW_VAR *var, char *buff,
|
||||
enum enum_var_type scope)
|
||||
{
|
||||
var->type= SHOW_LONG;
|
||||
var->type= SHOW_LONGLONG;
|
||||
var->value= buff;
|
||||
*((long *) buff)= (long) tdc_refresh_version();
|
||||
*((longlong *) buff)= (longlong)tdc_refresh_version();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user