From 20c78a6d3e209c20a08c4f9be546d8e3f1a7636d Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 13 Aug 2019 13:54:59 +0400 Subject: Fixing `MDEV-20303 SPACE(-1) returns a wrong data type` compilation problem in Windows --- sql/item_strfunc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/item_strfunc.cc') diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index b170634d864..74bed5d70ed 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -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; -- cgit v1.2.1