diff --git a/src/cppREST/ServerDB.cpp b/src/cppREST/ServerDB.cpp index b63b0fa37..a8c244330 100644 --- a/src/cppREST/ServerDB.cpp +++ b/src/cppREST/ServerDB.cpp @@ -514,7 +514,10 @@ QJsonDocument ServerDB::getFileLocation(const QString filename_with_path, const QSqlQuery query = db_->exec("SELECT * FROM file_locations WHERE (filename_with_path = \"" + filename_with_path + "\" AND type = \"" + type + "\" AND locus = \"" + locus + "\" AND multiple_files=" + QString::number(static_cast(multiple_files)) + " AND return_if_missing=" + QString::number(static_cast(return_if_missing)) + ")"); if (query.next()) { - int index_json_content = query.record().indexOf("json_content"); + int index_json_content = query.record().indexOf("json_content"); + Log::error("-----------"); + Log::error(query.value(index_json_content).toString()); + Log::error("-----------"); return QJsonDocument::fromJson(query.value(index_json_content).toString().toLocal8Bit()); } return QJsonDocument();