Skip to content

Commit 4375245

Browse files
committed
MDEV-34206 compile failure: fmt use incompatible with libfmt-10.2.[2]+
Upstream libfmt commit fmtlib/fmt@d707292 now requires the format function to be const. Adjust the function prototype so it is const and can compile.
1 parent be0dfcd commit 4375245

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql/item_strfunc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ bool Item_func_sformat::fix_length_and_dec(THD *thd)
13821382
namespace fmt {
13831383
template <> struct formatter<String>: formatter<string_view> {
13841384
template <typename FormatContext>
1385-
auto format(String c, FormatContext& ctx) -> decltype(ctx.out()) {
1385+
auto format(String c, FormatContext& ctx) const -> decltype(ctx.out()) {
13861386
string_view name = { c.ptr(), c.length() };
13871387
return formatter<string_view>::format(name, ctx);
13881388
};

0 commit comments

Comments
 (0)