fixed stupid copy paste error that caused all the fields to have the same type

work rleated to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
This commit is contained in:
Guillaume Raffy 2024-11-13 14:47:49 +01:00
parent ca1f4c1a88
commit 5337c41645
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ class SqlResultsTable(IResultsTable):
param: BenchParam
sql_field_type = {
BenchParam.Type.PARAM_TYPE_FLOAT: SqlTableField.Type.FIELD_TYPE_FLOAT,
BenchParam.Type.PARAM_TYPE_INT: SqlTableField.Type.FIELD_TYPE_FLOAT,
BenchParam.Type.PARAM_TYPE_STRING: SqlTableField.Type.FIELD_TYPE_FLOAT,
BenchParam.Type.PARAM_TYPE_TIME: SqlTableField.Type.FIELD_TYPE_FLOAT,
BenchParam.Type.PARAM_TYPE_INT: SqlTableField.Type.FIELD_TYPE_INT,
BenchParam.Type.PARAM_TYPE_STRING: SqlTableField.Type.FIELD_TYPE_STRING,
BenchParam.Type.PARAM_TYPE_TIME: SqlTableField.Type.FIELD_TYPE_TIME,
}[param.param_type]
fields.append(SqlTableField(param.name, sql_field_type, param.description))
self.sql_backend.create_table(table_name, fields)