Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2b0a5824
Commit
2b0a5824
authored
Sep 22, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portability fix: avoid anonymous structs and unions in C
parent
4bcd78e8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
258 additions
and
258 deletions
+258
-258
include/ma_dyncol.h
include/ma_dyncol.h
+6
-6
mysys/ma_dyncol.c
mysys/ma_dyncol.c
+60
-60
sql/item_strfunc.cc
sql/item_strfunc.cc
+72
-72
unittest/mysys/ma_dyncol-t.c
unittest/mysys/ma_dyncol-t.c
+120
-120
No files found.
include/ma_dyncol.h
View file @
2b0a5824
...
@@ -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
;
...
...
mysys/ma_dyncol.c
View file @
2b0a5824
This diff is collapsed.
Click to expand it.
sql/item_strfunc.cc
View file @
2b0a5824
This diff is collapsed.
Click to expand it.
unittest/mysys/ma_dyncol-t.c
View file @
2b0a5824
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment