From 756a4f1d087343280780ba6de73a35dc98dce4d1 Mon Sep 17 00:00:00 2001 From: adlerhurst Date: Thu, 5 Nov 2020 13:24:37 +0100 Subject: [PATCH] fix: union --- internal/eventstore/v2/repository/sql/crdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/eventstore/v2/repository/sql/crdb.go b/internal/eventstore/v2/repository/sql/crdb.go index fadc0fb84c..aac3fcc193 100644 --- a/internal/eventstore/v2/repository/sql/crdb.go +++ b/internal/eventstore/v2/repository/sql/crdb.go @@ -52,7 +52,7 @@ const ( " aggregate_type = $2::VARCHAR " + " AND aggregate_id = $3::VARCHAR " + " GROUP BY resource_owner " + - " ) UNION ALL (" + + " ) UNION (" + // if no previous event we use the given data " VALUES (" + " $1::VARCHAR, " +