Skip to content

Commit 0372f98

Browse files
mariadb-SachinSetiyavuvova
authored andcommitted
Fix buildbot Windows and bintar compile failure
1 parent bd7f7b1 commit 0372f98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/handler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6542,7 +6542,7 @@ static int check_duplicate_long_entry_key(TABLE *table, handler *h, uchar *new_r
65426542
DBUG_ASSERT(!my_strcasecmp(system_charset_info, "left", fnc->func_name()));
65436543
DBUG_ASSERT(fnc->arguments()[0]->type() == Item::FIELD_ITEM);
65446544
t_field= static_cast<Item_field *>(fnc->arguments()[0])->field;
6545-
longlong length= fnc->arguments()[1]->val_int();
6545+
uint length= (uint)fnc->arguments()[1]->val_int();
65466546
if (t_field->cmp_max(t_field->ptr, t_field->ptr + diff, length))
65476547
is_same= false;
65486548
}

sql/sql_table.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4097,9 +4097,9 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
40974097
}
40984098
}
40994099
/* We can not store key_part_length more then 2^16 - 1 in frm */
4100-
if (is_hash_field_needed && column->length > UINT16_MAX)
4100+
if (is_hash_field_needed && column->length > UINT_MAX16)
41014101
{
4102-
my_error(ER_TOO_LONG_KEYPART, MYF(0), UINT16_MAX);
4102+
my_error(ER_TOO_LONG_KEYPART, MYF(0), UINT_MAX16);
41034103
DBUG_RETURN(TRUE);
41044104
}
41054105
else

0 commit comments

Comments
 (0)