From 5337c416453a6ed12cfcd22015666d034f5bb76b Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 13 Nov 2024 14:47:49 +0100 Subject: [PATCH] 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] --- iprbench/resultsdb/sqlresultsdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iprbench/resultsdb/sqlresultsdb.py b/iprbench/resultsdb/sqlresultsdb.py index 144da8d..7bdd447 100644 --- a/iprbench/resultsdb/sqlresultsdb.py +++ b/iprbench/resultsdb/sqlresultsdb.py @@ -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)