mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 20:48:07 +00:00
fix(MainDb): Schrodinger commit
This commit is contained in:
parent
2600d5f4d8
commit
1dda2e3d36
1 changed files with 3 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue