Commit 20c78a6d authored by Alexander Barkov's avatar Alexander Barkov

Fixing `MDEV-20303 SPACE(-1) returns a wrong data type` compilation problem in Windows

parent 98b24da0
......@@ -3180,7 +3180,7 @@ bool Item_func_pad::fix_length_and_dec()
DBUG_ASSERT(collation.collation->mbmaxlen > 0);
if (args[1]->const_item() && !args[1]->is_expensive())
{
fix_char_length(Repeat_count(args[1]).count());
fix_char_length_ulonglong(Repeat_count(args[1]).count());
return false;
}
max_length= MAX_BLOB_WIDTH;
......
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