8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:03:03 +01:00

Fix for #8249 - CAST() ignores collation of target data type

This commit is contained in:
Dimitry Sibiryakov 2024-10-04 12:12:45 +02:00 committed by GitHub
parent 5e5ae686b7
commit aa167e2b36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);