Unverified Commit c4778f4c authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

Merge branch 'master' of...

Merge branch 'master' of gitlab.switch.ch:memoriav/memobase-2020/services/postprocessing/mediametadatatodb into master
parents 4eee20d4 57a347df
......@@ -192,7 +192,7 @@ def _create_sql_stmt(table_name, record, fields) -> str:
for db_field in db_fields])
db_fields = ','.join(db_fields)
# noinspection SqlNoDataSourceInspection
return 'INSERT IGNORE INTO {} ({}) VALUES ({})'.format(
return 'INSERT ON DUPLICATE KEY UPDATE INTO {} ({}) VALUES ({})'.format(
table_name, db_fields, db_values)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment