Skip to content

Commit 6002518

Browse files
author
Kristofer Pettersson
committed
* Fixed: Illegal comparison between signed and unsigned integer expressions
* Fixed: GRANT_INFO member should be in #ifndef DBUG_OFF clause
1 parent 45cc58e commit 6002518

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugin/version_token/version_token.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ PLUGIN_EXPORT long long version_tokens_lock_shared(
957957
{
958958
long long timeout= *((long long*)args->args[args->arg_count - 1]);
959959

960-
if (timeout < 0 || timeout > ULONG_MAX)
960+
if (timeout < 0 || timeout > LONG_MAX)
961961
{
962962
my_error(ER_DATA_OUT_OF_RANGE, MYF(0), "timeout",
963963
"version_tokens_lock_shared");
@@ -984,7 +984,7 @@ PLUGIN_EXPORT long long version_tokens_lock_exclusive(
984984
{
985985
long long timeout= *((long long*)args->args[args->arg_count - 1]);
986986

987-
if (timeout < 0 || timeout > ULONG_MAX)
987+
if (timeout < 0 || timeout > LONG_MAX)
988988
{
989989
my_error(ER_DATA_OUT_OF_RANGE, MYF(0), "timeout",
990990
"version_tokens_lock_exclusive");

sql/table.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ GRANT_INFO::GRANT_INFO()
226226
grant_table= 0;
227227
version= 0;
228228
privilege= NO_ACCESS;
229+
#ifndef DBUG_OFF
229230
want_privilege= 0;
231+
#endif
230232
}
231233

232234

0 commit comments

Comments
 (0)