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
711b6618
Commit
711b6618
authored
Aug 03, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
1292851b
534e6933
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
include/mysql/plugin.h
include/mysql/plugin.h
+1
-1
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+0
-1
mysys/my_getopt.c
mysys/my_getopt.c
+16
-10
storage/example/ha_example.cc
storage/example/ha_example.cc
+1
-1
No files found.
include/mysql/plugin.h
View file @
711b6618
...
...
@@ -327,7 +327,7 @@ DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned long long) = { \
#name, comment, check, update, &varname, def, min, max, blk }
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned
long
) = { \
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned
int
) = { \
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \
#name, comment, check, update, &varname, def, typelib }
...
...
mysql-test/t/disabled.def
View file @
711b6618
...
...
@@ -13,7 +13,6 @@ kill : Bug#37780 2008-12-03 HHunger need some changes to be
lowercase_table3 : Bug#54845 2010-06-30 alik main.lowercase_table3 on Mac OSX
mysqlhotcopy_myisam : bug#54129 2010-06-04 Horst
mysqlhotcopy_archive : bug#54129 2010-06-04 Horst
plugin_load : Bug#42144 2009-12-21 alik plugin_load fails
partition_innodb_plugin : Bug#53307 2010-04-30 VasilDimov valgrind warnings
query_cache_28249 : Bug#43861 2009-03-25 main.query_cache_28249 fails sporadically
sp_sync : Bug#48157 2010-02-06 5.5-m3 demands a differnt solution
mysys/my_getopt.c
View file @
711b6618
...
...
@@ -603,18 +603,24 @@ static int setval(const struct my_option *opts, void *value, char *argument,
};
break
;
case
GET_ENUM
:
if
(((
*
(
uint
*
)
value
)
=
find_type
(
argument
,
opts
->
typelib
,
2
)
-
1
)
==
(
uint
)
-
1
)
{
/* Accept an integer representation of the enumerated item */
char
*
endptr
;
uint
arg
=
(
uint
)
strtol
(
argument
,
&
endptr
,
10
);
if
(
*
endptr
||
arg
>=
opts
->
typelib
->
count
)
int
type
=
find_type
(
argument
,
opts
->
typelib
,
2
);
if
(
type
==
0
)
{
res
=
EXIT_ARGUMENT_INVALID
;
goto
ret
;
};
*
(
uint
*
)
value
=
arg
;
/*
Accept an integer representation of the enumerated item.
*/
char
*
endptr
;
uint
arg
=
(
uint
)
strtoul
(
argument
,
&
endptr
,
10
);
if
(
*
endptr
||
arg
>=
opts
->
typelib
->
count
)
{
res
=
EXIT_ARGUMENT_INVALID
;
goto
ret
;
}
*
(
uint
*
)
value
=
arg
;
}
else
*
(
uint
*
)
value
=
type
-
1
;
}
break
;
case
GET_SET
:
...
...
storage/example/ha_example.cc
View file @
711b6618
...
...
@@ -912,7 +912,7 @@ int ha_example::create(const char *name, TABLE *table_arg,
struct
st_mysql_storage_engine
example_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
static
u
long
srv_enum_var
=
0
;
static
u
int
srv_enum_var
=
0
;
static
ulong
srv_ulong_var
=
0
;
const
char
*
enum_var_names
[]
=
...
...
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