Skip to content

Commit

Permalink
HHH-14438 - ValueHandlers are broken
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybpanfilov committed Feb 5, 2021
1 parent cfc7b97 commit 3b82950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Object transformTuple(Object[] tuple, String[] aliases) {

return tupleElements == null
? valueHandlerResult.length == 1 ? valueHandlerResult[0] : valueHandlerResult
: new TupleImpl( tuple );
: new TupleImpl( valueHandlerResult );

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public List<ValueHandlerFactory.ValueHandler> getValueHandlers() {
valueHandlers.add( valueHandler );
foundHandlers = foundHandlers || valueHandler != null;
}
return foundHandlers ? null : valueHandlers;
return foundHandlers ? valueHandlers : null;
}

public void registerParameters(ParameterRegistry registry) {
Expand Down

0 comments on commit 3b82950

Please sign in to comment.