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); } };