Skip to content

Commit

Permalink
Merge pull request #3516 from ubtue/mtrojan
Browse files Browse the repository at this point in the history
validate_harvested_records.cc: Fix invalid SQL syntax
  • Loading branch information
mtrojan-ub authored Jul 6, 2020
2 parents 6613018 + 9c86f56 commit d1905b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/validate_harvested_records.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void WriteToDatabase(DbConnection * const db_connection, const std::string &jour
for (const auto &field_info : journal_info)
db_connection->queryOrDie("INSERT INTO metadata_presence_tracer SET zeder_journal_id=(SELECT id FROM zeder_journals WHERE journal_name="
+ db_connection->escapeAndQuoteString(journal_name) + ")"
+ ", metadata_field_name='" + db_connection->escapeAndQuoteString(field_info.name_)
+ ", metadata_field_name=" + db_connection->escapeAndQuoteString(field_info.name_)
+ ", field_presence='" + FieldPresenceToString(field_info.presence_) + "'");
}

Expand Down

0 comments on commit d1905b4

Please sign in to comment.