From 241f17eb98ab457572a571e149c0046ab9afc7ca Mon Sep 17 00:00:00 2001 From: Zuofei Wang Date: Wed, 25 Jun 2025 22:06:35 -0700 Subject: [PATCH] fix mysql binary logging 0 parameters --- lib/MySQL_Logger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MySQL_Logger.cpp b/lib/MySQL_Logger.cpp index 9a50442a0..1ac28a614 100644 --- a/lib/MySQL_Logger.cpp +++ b/lib/MySQL_Logger.cpp @@ -962,6 +962,7 @@ uint64_t MySQL_Event::write_query_format_1(std::fstream *f) { // Deterministic binary logging: always report 0 parameters. uint16_t num_params = 0; uint8_t paramCountLen = mysql_encode_length(num_params, buf); + write_encoded_length(buf, num_params, paramCountLen, buf[0]); f->write((char *)buf, paramCountLen); } }