Skip to content

Commit

Permalink
validate_harvested_records.cc: Fix invalid SQL syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrojan-ub committed Jul 6, 2020
1 parent 17c1849 commit 9c86f56
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 9c86f56

Please sign in to comment.