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
de54d4d9
Commit
de54d4d9
authored
Jun 19, 2020
by
Sylvain Berfini
🐮
Browse files
Fixed issue with soci indicator in load chat message contents
parent
c001a62e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/db/main-db.cpp
src/db/main-db.cpp
+4
-4
No files found.
src/db/main-db.cpp
View file @
de54d4d9
...
...
@@ -3136,19 +3136,19 @@ void MainDb::loadChatMessageContents (const shared_ptr<ChatMessage> &chatMessage
string
name
;
int
size
;
string
path
;
soci
::
indicator
haveData
;
*
session
<<
"SELECT name, size, path FROM chat_message_file_content"
" WHERE chat_message_content_id = :contentId"
,
soci
::
into
(
name
,
haveData
),
soci
::
into
(
size
),
soci
::
into
(
path
),
soci
::
use
(
contentId
);
if
(
haveData
==
soci
::
i_ok
)
{
soci
::
into
(
name
),
soci
::
into
(
size
),
soci
::
into
(
path
),
soci
::
use
(
contentId
);
if
(
session
->
got_data
()
)
{
FileContent
*
fileContent
=
new
FileContent
();
fileContent
->
setFileName
(
name
);
fileContent
->
setFileSize
(
size_t
(
size
));
fileContent
->
setFilePath
(
path
);
content
=
fileContent
;
}
else
}
else
{
content
=
new
Content
();
}
}
content
->
setContentType
(
contentType
);
...
...
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