expfileid, expfile_names[expfileid], set(expfiles_census[expfileid]), list(resultdict.items()), expentropy)
db.execute("""
insert into testrun_cluster_dejagnu_expfile_entropy (cluster, expfile, entropy) values (?,?,?)
-on conflict do update set entropy=excluded.entropy;
+on conflict (cluster, expfile) do update set entropy=excluded.entropy;
""", (clid, expfileid, expentropy))
db.commit()
clustentropy += expentropy
# https://www.sqlite.org/lang_UPSERT.html
db.execute("""
insert into testrun_cluster_dejagnu_expfile_entropy_fresh (cluster, memberhash) values (?, ?)
-on conflict do update set memberhash=excluded.memberhash;
+on conflict(cluster) do update set memberhash=excluded.memberhash;
""", (clid,memberhash))
db.commit()