From 25510311581f1606623ddb574f061c8b31847590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sun, 24 Aug 2025 19:15:46 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BE=D0=B5=D0=B4=D0=B8=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=20=D0=B1=D0=B0=D0=B7=D0=BE=D0=B9!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 602efb7..48796c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,9 +43,7 @@ int main(int argc, char* argv[]) auto const threads = std::max(1, std::atoi(argv[4])); string mysql_credentials = argv[5]; - mysqlx::Session session(mysql_credentials); - - uad::SetMySqlSession(&session); + uad::SetMySqlSession(new mysqlx::Session(mysql_credentials)); net::io_context ioc{threads};