Commit 2b0a5824 authored by Sergei Golubchik's avatar Sergei Golubchik

portability fix: avoid anonymous structs and unions in C

parent 4bcd78e8
...@@ -79,15 +79,15 @@ struct st_dynamic_column_value ...@@ -79,15 +79,15 @@ struct st_dynamic_column_value
unsigned long long ulong_value; unsigned long long ulong_value;
double double_value; double double_value;
struct { struct {
LEX_STRING string_value; LEX_STRING value;
CHARSET_INFO *charset; CHARSET_INFO *charset;
}; } string;
struct { struct {
decimal_digit_t decimal_buffer[DECIMAL_BUFF_LENGTH]; decimal_digit_t buffer[DECIMAL_BUFF_LENGTH];
decimal_t decimal_value; decimal_t value;
}; } decimal;
MYSQL_TIME time_value; MYSQL_TIME time_value;
}; } x;
}; };
typedef struct st_dynamic_column_value DYNAMIC_COLUMN_VALUE; typedef struct st_dynamic_column_value DYNAMIC_COLUMN_VALUE;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment