Commit 1dda2e3d authored by Ronan's avatar Ronan
Browse files

fix(MainDb): Schrodinger commit

parent 2600d5f4
...@@ -346,7 +346,8 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate), ...@@ -346,7 +346,8 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
string path; string path;
*session << "SELECT name, size, path FROM chat_message_file_content" *session << "SELECT name, size, path FROM chat_message_file_content"
" WHERE chat_message_content_id = :contentId", soci::use(contentId); " WHERE chat_message_content_id = :contentId",
soci::into(name), soci::into(size), soci::into(path) soci::use(contentId);
FileContent *fileContent = new FileContent(); FileContent *fileContent = new FileContent();
fileContent->setFileName(name); fileContent->setFileName(name);
...@@ -355,7 +356,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate), ...@@ -355,7 +356,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
content = fileContent; content = fileContent;
} else } else
Content *content = new Content(); content = new Content();
content->setContentType(contentType); content->setContentType(contentType);
content->setBody(row.get<string>(2)); content->setBody(row.get<string>(2));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment