Skip to content

Commit

Permalink
Add missing ${prefix} and remove not incorrect "as" for alias naming …
Browse files Browse the repository at this point in the history
…on Oracle
  • Loading branch information
filiphr committed Dec 12, 2023
1 parent 7f43222 commit 39f0602
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,14 @@
and lower(RES.NAME_) like lower(#{nameLikeIgnoreCase})${wildcardEscapeClause}
</if>
<if test="parentScopeId != null">
and EXISTS(select 1 from ACT_RU_ENTITYLINK as LINK where
and EXISTS(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="rootScopeId != null">
and exists(select 1 from ACT_RU_ENTITYLINK as LINK where
and exists(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{rootScopeId}
)
Expand Down Expand Up @@ -732,14 +732,14 @@
I.GROUP_ID_ = #{orQueryObject.involvedGroupIdentityLink.groupId} and I.TYPE_ = #{orQueryObject.involvedGroupIdentityLink.type})
</if>
<if test="orQueryObject.parentScopeId != null">
or EXISTS(select 1 from ACT_RU_ENTITYLINK as LINK where
or EXISTS(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{orQueryObject.parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="orQueryObject.rootScopeId != null">
or exists(select 1 from ACT_RU_ENTITYLINK as LINK where
or exists(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{orQueryObject.rootScopeId}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,14 +624,14 @@
and lower(${queryTablePrefix}NAME_) LIKE lower(#{caseInstanceNameLikeIgnoreCase})${wildcardEscapeClause}
</if>
<if test="parentScopeId != null">
and EXISTS(select 1 from ACT_HI_ENTITYLINK as LINK where
and EXISTS(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="rootScopeId != null">
and exists(select 1 from ACT_HI_ENTITYLINK as LINK where
and exists(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{rootScopeId}
)
Expand Down Expand Up @@ -871,14 +871,14 @@
I.GROUP_ID_ = #{orQueryObject.involvedGroupIdentityLink.groupId} and I.TYPE_ = #{orQueryObject.involvedGroupIdentityLink.type})
</if>
<if test="orQueryObject.parentScopeId != null">
or EXISTS(select 1 from ACT_HI_ENTITYLINK as LINK where
or EXISTS(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{orQueryObject.parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="orQueryObject.rootScopeId != null">
or exists(select 1 from ACT_HI_ENTITYLINK as LINK where
or exists(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{orQueryObject.rootScopeId}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -820,14 +820,14 @@
and lower(RES.NAME_) like lower(#{nameLikeIgnoreCase})${wildcardEscapeClause}
</if>
<if test="parentScopeId != null">
and EXISTS(select 1 from ACT_RU_ENTITYLINK as LINK where
and EXISTS(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="rootScopeId != null">
and exists(select 1 from ACT_RU_ENTITYLINK as LINK where
and exists(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{rootScopeId}
)
Expand Down Expand Up @@ -1114,14 +1114,14 @@
or lower(RES.NAME_) like lower(#{orQueryObject.nameLikeIgnoreCase})${wildcardEscapeClause}
</if>
<if test="orQueryObject.parentScopeId != null">
or EXISTS(select 1 from ACT_RU_ENTITYLINK as LINK where
or EXISTS(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{orQueryObject.parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="orQueryObject.rootScopeId != null">
or exists(select 1 from ACT_RU_ENTITYLINK as LINK where
or exists(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{orQueryObject.rootScopeId}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,14 +870,14 @@
and lower(${queryTablePrefix}NAME_) like lower(#{nameLikeIgnoreCase})${wildcardEscapeClause}
</if>
<if test="parentScopeId != null">
and EXISTS(select 1 from ACT_HI_ENTITYLINK as LINK where
and EXISTS(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="rootScopeId != null">
and exists(select 1 from ACT_HI_ENTITYLINK as LINK where
and exists(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{rootScopeId}
)
Expand Down Expand Up @@ -1014,14 +1014,14 @@
or lower(${queryTablePrefix}NAME_) like lower(#{orQueryObject.nameLikeIgnoreCase})${wildcardEscapeClause}
</if>
<if test="orQueryObject.parentScopeId != null">
or EXISTS(select 1 from ACT_HI_ENTITYLINK as LINK where
or EXISTS(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{orQueryObject.parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="orQueryObject.rootScopeId != null">
or exists(select 1 from ACT_HI_ENTITYLINK as LINK where
or exists(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{orQueryObject.rootScopeId}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1455,15 +1455,15 @@
and (${queryTablePrefix}DELETE_REASON_ = '' or ${queryTablePrefix}DELETE_REASON_ is null)
</if>
<if test="parentScopeId != null">
and EXISTS(select 1 from ACT_HI_ENTITYLINK as LINK where
and EXISTS(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="rootScopeId != null">
and exists(
select 1 from ACT_HI_ENTITYLINK as LINK where
select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{rootScopeId}
)
Expand Down Expand Up @@ -1861,15 +1861,15 @@
)
</if>
<if test="orQueryObject.parentScopeId != null">
or EXISTS(select 1 from ACT_HI_ENTITYLINK as LINK where
or EXISTS(select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{orQueryObject.parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="orQueryObject.rootScopeId != null">
or exists(
select 1 from ACT_HI_ENTITYLINK as LINK where
select 1 from ${prefix}ACT_HI_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{orQueryObject.rootScopeId}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1061,15 +1061,15 @@
and (RES.TENANT_ID_ = '' or RES.TENANT_ID_ is null)
</if>
<if test="parentScopeId != null">
and EXISTS(select 1 from ACT_RU_ENTITYLINK as LINK where
and EXISTS(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="rootScopeId != null">
and exists(
select 1 from ACT_RU_ENTITYLINK as LINK where
select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{rootScopeId}
)
Expand Down Expand Up @@ -1484,15 +1484,15 @@
)
</if>
<if test="orQueryObject.parentScopeId != null">
or EXISTS(select 1 from ACT_RU_ENTITYLINK as LINK where
or EXISTS(select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.SCOPE_ID_ = #{orQueryObject.parentScopeId}
and LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.HIERARCHY_TYPE_ = 'parent'
)
</if>
<if test="orQueryObject.rootScopeId != null">
or exists(
select 1 from ACT_RU_ENTITYLINK as LINK where
select 1 from ${prefix}ACT_RU_ENTITYLINK LINK where
LINK.REF_SCOPE_ID_ = RES.ID_
and LINK.ROOT_SCOPE_ID_ = #{orQueryObject.rootScopeId}
)
Expand Down

0 comments on commit 39f0602

Please sign in to comment.