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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7ed98512
Commit
7ed98512
authored
May 23, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.1-maint
into mysql.com:/home/ram/work/b23810/b23810.5.1
parents
822b1d40
794100ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
include/my_global.h
include/my_global.h
+3
-0
sql/sql_show.cc
sql/sql_show.cc
+3
-1
No files found.
include/my_global.h
View file @
7ed98512
...
...
@@ -911,6 +911,9 @@ typedef unsigned long long my_size_t;
#define ADD_TO_PTR(ptr,size,type) (type) ((byte*) (ptr)+size)
#define PTR_BYTE_DIFF(A,B) (my_ptrdiff_t) ((byte*) (A) - (byte*) (B))
#define MY_DIV_UP(A, B) (((A) + (B) - 1) / (B))
#define MY_ALIGNED_BYTE_ARRAY(N, S, T) T N[MY_DIV_UP(S, sizeof(T))]
/*
Custom version of standard offsetof() macro which can be used to get
offsets of members in class for non-POD types (according to the current
...
...
sql/sql_show.cc
View file @
7ed98512
...
...
@@ -2035,7 +2035,9 @@ static bool show_status_array(THD *thd, const char *wild,
const
char
*
prefix
,
TABLE
*
table
,
bool
ucase_names
)
{
char
buff
[
SHOW_VAR_FUNC_BUFF_SIZE
],
*
prefix_end
;
MY_ALIGNED_BYTE_ARRAY
(
buff_data
,
SHOW_VAR_FUNC_BUFF_SIZE
,
long
);
char
*
const
buff
=
(
char
*
)
&
buff_data
;
char
*
prefix_end
;
/* the variable name should not be longer than 64 characters */
char
name_buffer
[
64
];
int
len
;
...
...
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