Skip to content

Commit d264377

Browse files
author
Roman Golov
committed
Check error before unmarshalling result.
1 parent 16616ad commit d264377

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/sugar_unmarhall_result_set_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func TestSugarUnmarshallResultSet(t *testing.T) {
6565
SELECT 43 as id, "myStr43" as myStr, 123 as unexpected_column
6666
ORDER BY id
6767
`)
68+
require.NoError(t, err)
6869

6970
many, err := sugar.UnmarshallResultSet[myStruct](rows)
7071
require.ErrorIs(t, err, scanner.ErrFieldsNotFoundInStruct)

0 commit comments

Comments
 (0)