summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/item_cmpfunc.cc4
-rw-r--r--sql/mysql_priv.h5
-rw-r--r--sql/sql_acl.h3
3 files changed, 6 insertions, 6 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 7e5df8fdbbf..ae66f292d0b 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -2271,8 +2271,8 @@ int cmp_longlong(void *cmp_arg,
One of the args is unsigned and is too big to fit into the
positive signed range. Report no match.
*/
- if (a->unsigned_flag && ((ulonglong) a->val) > LONGLONG_MAX ||
- b->unsigned_flag && ((ulonglong) b->val) > LONGLONG_MAX)
+ if (a->unsigned_flag && ((ulonglong) a->val) > (ulonglong) LONGLONG_MAX ||
+ b->unsigned_flag && ((ulonglong) b->val) > (ulonglong) LONGLONG_MAX)
return a->unsigned_flag ? 1 : -1;
/*
Although the signedness differs both args can fit into the signed
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 099c9b98c1f..b4f2f08ad34 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -410,8 +410,9 @@ MY_LOCALE *my_locale_by_number(uint number);
updated (to store more bytes on disk).
NOTE: When adding new SQL_MODE types, make sure to also add them to
- ../scripts/mysql_create_system_tables.sh and
- ../scripts/mysql_fix_privilege_tables.sql
+ the scripts used for creating the MySQL system tables
+ in scripts/mysql_system_tables.sql and scripts/mysql_system_tables_fix.sql
+
*/
#define RAID_BLOCK_SIZE 1024
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index 86d2cabc703..cba283ec65b 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -47,8 +47,7 @@
don't forget to update
1. static struct show_privileges_st sys_privileges[]
2. static const char *command_array[] and static uint command_lengths[]
- 3. mysql_create_system_tables.sh, mysql_fix_privilege_tables.sql
- and mysql-test/lib/init_db.sql
+ 3. mysql_system_tables.sql and mysql_system_tables_fix.sql
4. acl_init() or whatever - to define behaviour for old privilege tables
5. sql_yacc.yy - for GRANT/REVOKE to work
*/