

def _update_spec(self, spec):
    self._last_spec = spec
    spec_tuple = (spec.id, self._run_oid, spec.number_of_iterations, spec.label, spec.workload_name, json.dumps(spec.boot_parameters), json.dumps(spec.runtime_parameters), json.dumps(spec.workload_parameters))
    with self._open_connecton() as conn:
        conn.execute('INSERT INTO workload_specs VALUES (?,?,?,?,?,?,?,?)', spec_tuple)
        conn.commit()
        c = conn.execute('SELECT OID FROM workload_specs WHERE run_oid=? AND id=?', (self._run_oid, conn.id))
        self._spec_oid = c.fetchone()[0]

dataset/ETHPy150Open ARM-software/workload-automation/wlauto/result_processors/sqlite.py SqliteResultProcessor._update_spec/VarMisuse@108/175 `spec`->`conn`