Commit 1f5a8e1f authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed signed/unsigned error on Windows

parent dd3ffdbd
...@@ -17555,7 +17555,8 @@ xid: ...@@ -17555,7 +17555,8 @@ xid:
{ {
MYSQL_YYABORT_UNLESS($1->length() <= MAXGTRIDSIZE && MYSQL_YYABORT_UNLESS($1->length() <= MAXGTRIDSIZE &&
$3->length() <= MAXBQUALSIZE && $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))))) if (unlikely(!(Lex->xid=(XID *)thd->alloc(sizeof(XID)))))
MYSQL_YYABORT; MYSQL_YYABORT;
Lex->xid->set($5, $1->ptr(), $1->length(), $3->ptr(), $3->length()); Lex->xid->set($5, $1->ptr(), $1->length(), $3->ptr(), $3->length());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment