Closed grooverdan closed 1 month ago
nm - our problem
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 19e011d54f8..28d7ee71453 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1382,7 +1382,7 @@ bool Item_func_sformat::fix_length_and_dec(THD *thd)
namespace fmt {
template <> struct formatter<String>: formatter<string_view> {
template <typename FormatContext>
- auto format(String c, FormatContext& ctx) -> decltype(ctx.out()) {
+ auto format(String c, FormatContext& ctx) const -> decltype(ctx.out()) {
string_view name = { c.ptr(), c.length() };
return formatter<string_view>::format(name, ctx);
};
Bisected to d70729215fba1d54862e407b626abf86ddf409bf the inclusion of the generated compile header fails include/fmt/format-inl.h
Our code: https://github.com/MariaDB/server/blob/mariadb-10.11.8/sql/item_strfunc.cc#L61
removing the following didn't solve the compile problem: