mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-19 12:04:54 +00:00
Also return content_type.
This commit is contained in:
parent
549ab7b16a
commit
a5d5ee5af5
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ namespace dindb {
|
|||
|
||||
{
|
||||
auto resultset = parDB.query(
|
||||
"SELECT \"desc\",\"type\",\"disk_number\",\"fs_uuid\",\"disk_label\" FROM sets WHERE \"id\"=$1;",
|
||||
"SELECT \"desc\",\"type\",\"disk_number\",\"fs_uuid\",\"disk_label\",\"content_type\" FROM sets WHERE \"id\"=$1;",
|
||||
group_id
|
||||
);
|
||||
if (resultset.empty()) {
|
||||
|
@ -79,6 +79,7 @@ namespace dindb {
|
|||
parSet.disk_number = lexical_cast<uint32_t>(row["disk_number"]);
|
||||
parSet.fs_uuid = row["fs_uuid"];
|
||||
parSet.disk_label = row["disk_label"];
|
||||
parSet.content_type = lexical_cast<char>(row["content_type"]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue