mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 17:25:31 +02:00
fixes/cleanups according to Coverity report
This commit is contained in:
parent
3671fe1f72
commit
8bdb500105
29 changed files with 156 additions and 162 deletions
|
|
@ -1825,7 +1825,7 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
|
|||
{
|
||||
ttid= (uint)table->field[1]->val_int();
|
||||
|
||||
if (ttid > TZ_MAX_TYPES)
|
||||
if (ttid >= TZ_MAX_TYPES)
|
||||
{
|
||||
sql_print_error("Error while loading time zone description from "
|
||||
"mysql.time_zone_transition_type table: too big "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue