diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-08-03 19:01:30 +0300 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-08-03 19:01:30 +0300 |
commit | 5eeb6488cf3973c3821aef10d40ed221985f9190 (patch) | |
tree | ea6251ab5067de2f16859c5fba5e0da34d11b2f2 /storage/example | |
parent | 60ab046abc82f75a174bf2ed19ef631a1a2e059a (diff) | |
download | mariadb-git-5eeb6488cf3973c3821aef10d40ed221985f9190.tar.gz |
Bug #42144: plugin_load fails
The enum system variables were handled inconsistently
as ints, unsigned int and unsigned long on various places.
This caused problems on platforms on which
sizeof(int) != sizeof(long).
Fixed by homogenizing the type of the enum variables
to unsigned int, since it's size compatible with the C enum
type.
Removed the test from the experimental list.
Diffstat (limited to 'storage/example')
-rw-r--r-- | storage/example/ha_example.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index 2a4fe538c85..402be70efab 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -848,7 +848,7 @@ int ha_example::create(const char *name, TABLE *table_arg, struct st_mysql_storage_engine example_storage_engine= { MYSQL_HANDLERTON_INTERFACE_VERSION }; -static ulong srv_enum_var= 0; +static uint srv_enum_var= 0; static ulong srv_ulong_var= 0; const char *enum_var_names[]= |