From 7e66bfa5809fbd86ea06016da2fae2ca3e945ea7 Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Tue, 9 Jul 2024 16:17:56 +0500 Subject: [PATCH] Fixed crash --- lib/Base_Session.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Base_Session.cpp b/lib/Base_Session.cpp index 7bd3ebe98..7ed8081ff 100644 --- a/lib/Base_Session.cpp +++ b/lib/Base_Session.cpp @@ -65,6 +65,11 @@ void Base_Session::init() { if constexpr (std::is_same_v) { sess_STMTs_meta = new MySQL_STMTs_meta(); SLDH = new StmtLongDataHandler(); + } else if constexpr (std::is_same_v) { + sess_STMTs_meta = NULL; + SLDH = NULL; + } else { + assert(0); } };