1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-7499 - System variables have broken default values on big endian

INFORMATION_SCHEMA.SYSTEM_VARIABLES.DEFAULT_VALUE had broken values on
big endian.

Default value is internally stored as longlong, while I_S references it's
pointer (longlong *) according to variable type (e.g. int, my_bool, etc). This
works well on little endian, but on big endian we always get 0 for such
variables.
This commit is contained in:
Sergey Vojtovich
2015-02-05 13:54:55 +04:00
parent b08126aad1
commit 451e9b7a50
3 changed files with 59 additions and 1 deletions

View File

@ -2731,10 +2731,13 @@ public:
union
{
my_bool my_bool_value;
int int_value;
uint uint_value;
long long_value;
ulong ulong_value;
ulonglong ulonglong_value;
double double_value;
void *ptr_value;
} sys_var_tmp;
struct {