Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
44de3832
Commit
44de3832
authored
Dec 05, 2017
by
Ronan
Browse files
fix(MainDb): do not use snake case
parent
4141af83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
src/db/main-db.cpp
src/db/main-db.cpp
+5
-8
No files found.
src/db/main-db.cpp
View file @
44de3832
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment