1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-17 11:45:50 +00:00

Also return content_type.

This commit is contained in:
King_DuckZ 2016-06-14 10:41:38 +01:00
parent 62bf47d0ed
commit 53835d54b2

View file

@ -65,7 +65,7 @@ namespace din {
{
auto resultset = conn.query(
"SELECT \"desc\",\"type\",\"disk_number\" FROM sets WHERE \"id\"=$1;",
"SELECT \"desc\",\"type\",\"disk_number\",\"content_type\" FROM sets WHERE \"id\"=$1;",
group_id
);
if (resultset.empty()) {
@ -78,6 +78,7 @@ namespace din {
parSet.type = lexical_cast<char>(row["type"]);
parSet.name = row["desc"];
parSet.disk_number = lexical_cast<uint32_t>(row["disk_number"]);
parSet.content_type = lexical_cast<char>(row["content_type"]);
}
return true;
}