mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
fix(MainDb): do not use snake case
This commit is contained in:
parent
4141af833c
commit
44de3832bb
1 changed files with 5 additions and 8 deletions
|
|
@ -516,14 +516,11 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
content = new Content();
|
||||
|
||||
// 2.2 - Fetch contents' app data.
|
||||
static const string content_app_data_query = "SELECT name, data FROM chat_message_content_app_data"
|
||||
" WHERE chat_message_content_id = :messageContentId";
|
||||
soci::rowset<soci::row> content_app_data_rows = (session->prepare << content_app_data_query, soci::use(contentId));
|
||||
for (const auto &content_app_data_row : content_app_data_rows) {
|
||||
string content_app_data_name(content_app_data_row.get<string>(0));
|
||||
string content_app_data_value(content_app_data_row.get<string>(1));
|
||||
content->setAppData(content_app_data_name, content_app_data_value);
|
||||
}
|
||||
static const string query = "SELECT name, data FROM chat_message_content_app_data"
|
||||
" WHERE chat_message_content_id = :contentId";
|
||||
soci::rowset<soci::row> rows = (session->prepare << query, soci::use(contentId));
|
||||
for (const auto &row : rows)
|
||||
content->setAppData(row.get<string>(0), row.get<string>(1));
|
||||
|
||||
content->setContentType(contentType);
|
||||
content->setBody(row.get<string>(3));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue