From 994d46dfd6276a1af3b136b1b7eed665cde15bbc Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Thu, 9 Apr 2026 11:34:02 +0000 Subject: [PATCH] fix: use PRIu64 for portable uint64_t formatting in stats flush --- plugins/mysqlx/src/mysqlx_stats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mysqlx/src/mysqlx_stats.cpp b/plugins/mysqlx/src/mysqlx_stats.cpp index 02b4a814c..92ce49c3c 100644 --- a/plugins/mysqlx/src/mysqlx_stats.cpp +++ b/plugins/mysqlx/src/mysqlx_stats.cpp @@ -3,6 +3,7 @@ #include "sqlite3db.h" #include +#include #include namespace { @@ -74,7 +75,7 @@ void MysqlxStatsStore::flush_to_sqlite(SQLite3DB& statsdb) { "INSERT INTO stats_mysqlx_routes " "(name, destination_hostgroup, ConnOK, ConnERR, ConnUsed, " "Bytes_data_sent, Bytes_data_recv) " - "VALUES ('%s', %d, %lu, %lu, %lu, %lu, %lu)", + "VALUES ('%s', %d, %" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 ", %" PRIu64 ")", escaped_name.c_str(), stats.destination_hostgroup, stats.conn_ok.load(std::memory_order_relaxed),