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

Fix #7604 - PSQL functions do not convert the output BLOB to the character set defined at creation.

This commit is contained in:
Adriano dos Santos Fernandes 2023-05-30 07:49:04 -03:00
parent 244a515159
commit 30b7852c76

View File

@ -12891,10 +12891,11 @@ void UdfCallNode::make(DsqlCompilerScratch* /*dsqlScratch*/, dsc* desc)
// pointer.
desc->setNullable(true);
if (desc->dsc_dtype <= dtype_any_text)
desc->dsc_ttype() = dsqlFunction->udf_character_set_id;
else
if (!desc->isText())
desc->dsc_ttype() = dsqlFunction->udf_sub_type;
if (desc->isText() || (desc->isBlob() && desc->getBlobSubType() == isc_blob_text))
desc->setTextType(dsqlFunction->udf_character_set_id);
}
void UdfCallNode::getDesc(thread_db* /*tdbb*/, CompilerScratch* /*csb*/, dsc* desc)