From aa167e2b36122684796d7b34935b0340be6f5074 Mon Sep 17 00:00:00 2001 From: Dimitry Sibiryakov Date: Fri, 4 Oct 2024 12:12:45 +0200 Subject: [PATCH] Fix for #8249 - CAST() ignores collation of target data type --- src/dsql/ExprNodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsql/ExprNodes.cpp b/src/dsql/ExprNodes.cpp index 76149a5411..676c98d833 100644 --- a/src/dsql/ExprNodes.cpp +++ b/src/dsql/ExprNodes.cpp @@ -3559,7 +3559,7 @@ ValueExprNode* CastNode::dsqlPass(DsqlCompilerScratch* dsqlScratch) node->dsqlField = dsqlField; node->format = format; - DDL_resolve_intl_type(dsqlScratch, node->dsqlField, NULL); + DDL_resolve_intl_type(dsqlScratch, node->dsqlField, node->dsqlField->collate); node->setParameterType(dsqlScratch, NULL, false); DsqlDescMaker::fromField(&node->castDesc, node->dsqlField);