From c477c70c5618e93b04b67952ef16e0fcea4ca625 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 11 Aug 2024 14:41:56 +0300 Subject: [PATCH] use sql --- src/lib/database/session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/database/session.cpp b/src/lib/database/session.cpp index c34537c9..3a79d406 100644 --- a/src/lib/database/session.cpp +++ b/src/lib/database/session.cpp @@ -7,14 +7,14 @@ Session::Session( ) { status = sqlite3_exec( connection, - R"( + R"SQL( CREATE TABLE IF NOT EXISTS `session` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `time` INTEGER NOT NULL, `request` VARCHAR(1024) ) - )", + )SQL", nullptr, nullptr, &error