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

Fixed CORE-5313 - Data type unknown error with LIST.

This commit is contained in:
Adriano dos Santos Fernandes 2016-07-17 20:42:01 -03:00
parent d8411b02cc
commit 1c6f688e79

View File

@ -818,8 +818,22 @@ dsc* ListAggNode::aggExecute(thread_db* tdbb, jrd_req* request) const
AggNode* ListAggNode::dsqlCopy(DsqlCompilerScratch* dsqlScratch) /*const*/
{
return FB_NEW_POOL(getPool()) ListAggNode(getPool(), distinct,
thread_db* tdbb = JRD_get_thread_data();
AggNode* node = FB_NEW_POOL(getPool()) ListAggNode(getPool(), distinct,
doDsqlPass(dsqlScratch, arg), doDsqlPass(dsqlScratch, delimiter));
dsc argDesc;
node->arg->make(dsqlScratch, &argDesc);
CharSet* charSet = INTL_charset_lookup(tdbb, argDesc.getCharSet());
dsc desc;
desc.makeText(charSet->maxBytesPerChar(), argDesc.getCharSet());
node->setParameterType(dsqlScratch, &desc, false);
return node;
}