mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Attempt fixing build failure on Windows
Let ulong_num being converted by strtoul() rather than strtol().
This commit is contained in:
parent
82e997ad3f
commit
f4f6558666
1 changed files with 2 additions and 2 deletions
|
@ -12344,7 +12344,7 @@ int_num:
|
|||
|
||||
ulong_num:
|
||||
opt_plus NUM { int error; $$= (ulong) my_strtoll10($2.str, (char**) 0, &error); }
|
||||
| HEX_NUM { $$= (ulong) strtol($1.str, (char**) 0, 16); }
|
||||
| HEX_NUM { $$= strtoul($1.str, (char**) 0, 16); }
|
||||
| opt_plus LONG_NUM { int error; $$= (ulong) my_strtoll10($2.str, (char**) 0, &error); }
|
||||
| opt_plus ULONGLONG_NUM { int error; $$= (ulong) my_strtoll10($2.str, (char**) 0, &error); }
|
||||
| opt_plus DECIMAL_NUM { int error; $$= (ulong) my_strtoll10($2.str, (char**) 0, &error); }
|
||||
|
@ -17555,7 +17555,7 @@ xid:
|
|||
{
|
||||
MYSQL_YYABORT_UNLESS($1->length() <= MAXGTRIDSIZE &&
|
||||
$3->length() <= MAXBQUALSIZE &&
|
||||
$5 <= INT32_MAX);
|
||||
$5 <= 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());
|
||||
|
|
Loading…
Add table
Reference in a new issue