Skip to content

Commit aa167e2

Browse files
authored
Fix for #8249 - CAST() ignores collation of target data type
1 parent 5e5ae68 commit aa167e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dsql/ExprNodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3559,7 +3559,7 @@ ValueExprNode* CastNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
35593559
node->dsqlField = dsqlField;
35603560
node->format = format;
35613561

3562-
DDL_resolve_intl_type(dsqlScratch, node->dsqlField, NULL);
3562+
DDL_resolve_intl_type(dsqlScratch, node->dsqlField, node->dsqlField->collate);
35633563
node->setParameterType(dsqlScratch, NULL, false);
35643564

35653565
DsqlDescMaker::fromField(&node->castDesc, node->dsqlField);

0 commit comments

Comments
 (0)