Fixed signed/unsigned error on Windows

This commit is contained in:
Sergey Vojtovich 2020-03-09 22:49:15 +04:00
parent dd3ffdbd92
commit 1f5a8e1f77

View file

@ -17555,7 +17555,8 @@ xid:
{
MYSQL_YYABORT_UNLESS($1->length() <= MAXGTRIDSIZE &&
$3->length() <= MAXBQUALSIZE &&
$5 <= std::numeric_limits<int32_t>::max());
$5 <= static_cast<ulong>(
std::numeric_limits<int32_t>::max()));
if (unlikely(!(Lex->xid=(XID *)thd->alloc(sizeof(XID)))))
MYSQL_YYABORT;
Lex->xid->set($5, $1->ptr(), $1->length(), $3->ptr(), $3->length());