Skip to content

Commit

Permalink
Fix - In processing with Literal list
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-kotang committed Oct 30, 2023
1 parent 4d620e4 commit 34e3243
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,14 @@ function meta::relational::postProcessor::generatePostProcessorResult(changedFun

$changedFunctions->fold({func, result |
let dbType = $connection.type;
let dbConfig = $dbType->createDbConfig([]);
let origInFunction = $func.first->cast(@DynaFunction);
let newInFunction = $func.second->cast(@DynaFunction);

let outerAllocationNodeName = if($newInFunction.parameters->at(1)->instanceOf(VarPlaceHolder),
|$newInFunction.parameters->at(1)->cast(@VarPlaceHolder).name,
|$newInFunction.parameters->at(1)->cast(@SelectSQLQuery).data.alias.name->toOne()->replace('tempTableForIn_', prefixForWrapperAllocationNodeName()));
let tempTableName = $dbType->createDbConfig([]).procesTempTableName($outerAllocationNodeName->replace(prefixForWrapperAllocationNodeName(), 'tempTableForIn_'));
|$newInFunction.parameters->at(1)->cast(@SelectSQLQuery).data.alias.name->toOne()->replace('tempTableForIn_', prefixForWrapperAllocationNodeName())->replace($dbConfig.procesTempTableName(''), ''));
let tempTableName = $dbConfig.procesTempTableName($outerAllocationNodeName->replace(prefixForWrapperAllocationNodeName(), 'tempTableForIn_'));
let tempTableColumnName = 'ColumnForStoringInCollection';
let allocationNodeName = $outerAllocationNodeName->replace(prefixForWrapperAllocationNodeName(), 'tempVarForIn_');

Expand Down

0 comments on commit 34e3243

Please sign in to comment.