fix(MainDb): Schrodinger commit

This commit is contained in:
Ronan Abhamon 2017-11-09 16:52:38 +01:00
parent 2600d5f4d8
commit 1dda2e3d36

View file

@ -346,7 +346,8 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
string path;
*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->setFileName(name);
@ -355,7 +356,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
content = fileContent;
} else
Content *content = new Content();
content = new Content();
content->setContentType(contentType);
content->setBody(row.get<string>(2));