diff --git a/pkg/sql/sem/tree/collatedstring.go b/pkg/sql/sem/tree/collatedstring.go index 01f69a0474b8..230d7cea7398 100644 --- a/pkg/sql/sem/tree/collatedstring.go +++ b/pkg/sql/sem/tree/collatedstring.go @@ -10,5 +10,14 @@ package tree +import "golang.org/x/text/collate" + // DefaultCollationTag is the "default" collation for strings. const DefaultCollationTag = "default" + +func init() { + if collate.CLDRVersion != "23" { + panic("This binary was built with an incompatible version of golang.org/x/text. " + + "See https://github.com/cockroachdb/cockroach/issues/63738 for details") + } +}