Skip to content

Commit

Permalink
Don't use slices.Concat (we still use go 1.21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-asawicki committed Dec 3, 2024
1 parent 9c3087c commit e66a936
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/sdk/testint/data_types_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ func TestInt_DataTypes(t *testing.T) {
"VARCHAR(x)",
"VARCHAR(36, 5)",
}
vectorInnerTypesSynonyms := slices.Concat(datatypes.AllNumberDataTypes, datatypes.FloatDataTypeSynonyms)
// can't use slices.Concat on 1.21
vectorInnerTypesSynonyms := make([]string, 0)
vectorInnerTypesSynonyms = append(vectorInnerTypesSynonyms, datatypes.AllNumberDataTypes...)
vectorInnerTypesSynonyms = append(vectorInnerTypesSynonyms, datatypes.FloatDataTypeSynonyms...)
vectorInnerTypeSynonymsThatWork := []string{
"INTEGER",
"INT",
Expand Down

0 comments on commit e66a936

Please sign in to comment.