1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-21 12:34:56 +00:00

Add missing $3 for the new app_name parameter.

Fixes crash after scanning a disk.
This commit is contained in:
King_DuckZ 2016-01-22 15:54:39 +00:00
parent eb618f0842
commit 588d735593

View file

@ -98,7 +98,7 @@ namespace din {
{ {
auto id_res = conn.query("INSERT INTO \"sets\" " auto id_res = conn.query("INSERT INTO \"sets\" "
"(\"desc\",\"type\",\"app_name\") " "(\"desc\",\"type\",\"app_name\") "
"VALUES ($1, $2) RETURNING \"id\";", "VALUES ($1, $2, $3) RETURNING \"id\";",
parSetData.name, parSetData.name,
std::string(1, parSetData.type), std::string(1, parSetData.type),
parSignature parSignature