From 746222d729ecbdd952b0192773c373fd799b10ba Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 4 Dec 2023 17:28:03 +0100 Subject: [PATCH] feat(backend): insert null comment to ux_test_signal is string is empty --- backend/pkg/uxtesting/uxtesting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pkg/uxtesting/uxtesting.go b/backend/pkg/uxtesting/uxtesting.go index 2784f20b2..9893b1d87 100644 --- a/backend/pkg/uxtesting/uxtesting.go +++ b/backend/pkg/uxtesting/uxtesting.go @@ -123,7 +123,7 @@ func (u *uxTestingImpl) SetTaskSignal(signal *TaskSignal) error { INSERT INTO ut_tests_signals ( session_id, test_id, task_id, status, comment, timestamp, duration ) VALUES ( - $1, $2, $3, $4, $5, $6, + $1, $2, $3, $4, NULLIF($5, ''), $6, CASE WHEN $7 <= 0 THEN NULL ELSE $7