blob: bb8e43830403a6f45899708d6ab389386c2bc902 [file] [log] [blame]
Patrick Williams8dd68482022-10-04 07:57:18 -05001From d7b8fafbc94405c20753fed569abd8878cccde89 Mon Sep 17 00:00:00 2001
2From: Felix Yan <felixonmars@archlinux.org>
3Date: Fri, 19 Aug 2022 15:22:10 +0300
4Subject: [PATCH] Fix build with fmt 9.0
5
6Fixes #2681
Patrick Williams8e7b46e2023-05-01 14:19:06 -05007Upstream-Status: Pending
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
Patrick Williams8dd68482022-10-04 07:57:18 -05009---
10 src/database/sql_format.h | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/src/database/sql_format.h b/src/database/sql_format.h
14index 32dc00ef..e4e1909a 100644
15--- a/src/database/sql_format.h
16+++ b/src/database/sql_format.h
17@@ -42,7 +42,7 @@ struct SQLIdentifier {
18 template <>
19 struct fmt::formatter<SQLIdentifier> : formatter<std::string_view> {
20 template <typename FormatContext>
21- auto format(const SQLIdentifier& tn, FormatContext& ctx) -> decltype(ctx.out())
22+ auto format(const SQLIdentifier& tn, FormatContext& ctx) const -> decltype(ctx.out())
23 {
24 return format_to(ctx.out(), "{}{}{}", tn.quote_begin, tn.name, tn.quote_end);
25 }
26@@ -61,7 +61,7 @@ struct ColumnUpdate {
27 template <>
28 struct fmt::formatter<ColumnUpdate> : formatter<std::string_view> {
29 template <typename FormatContext>
30- auto format(const ColumnUpdate& a, FormatContext& ctx) -> decltype(ctx.out())
31+ auto format(const ColumnUpdate& a, FormatContext& ctx) const -> decltype(ctx.out())
32 {
33 return format_to(ctx.out(), "{} = {}", a.column, a.value);
34 }
35--
362.38.0.rc1.362.ged0d419d3c-goog
37