Skip to content

Commit

Permalink
do not overwrite user defined return type
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Aug 15, 2023
1 parent 4fc39aa commit 9ea90e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2022 IBM Corporation. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -820,7 +820,7 @@ public void prepareObjectAttributeCount(ExpressionNormalizer normalizer, ReportI
}
} else if (baseExp.isExpressionBuilder()) {
if (((ExpressionBuilder)baseExp).getQueryClass() == null) {
if (item != null) {
if (item != null && item.getResultType() == null) {
item.setResultType(ClassConstants.INTEGER);
}
} else {
Expand Down

0 comments on commit 9ea90e3

Please sign in to comment.