From 13e160ec2b04f7e775583634551a949f7a5977d7 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Thu, 24 Dec 2020 14:28:09 +0000 Subject: [PATCH] MCOL-4470 Fix the crash in collation aware JOIN code --- utils/joiner/tuplejoiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/joiner/tuplejoiner.cpp b/utils/joiner/tuplejoiner.cpp index b51830d97..2cc01ecd7 100644 --- a/utils/joiner/tuplejoiner.cpp +++ b/utils/joiner/tuplejoiner.cpp @@ -1128,7 +1128,7 @@ void TupleJoiner::updateCPData(const Row& r) if (r.isCharType(colIdx)) { - datatypes::Charset cs(r.getCharset(col)); + datatypes::Charset cs(r.getCharset(colIdx)); int64_t val = r.getIntField(colIdx); if (datatypes::TCharShort::strnncollsp(cs, val, min) < 0 ||