Skip to content

Commit

Permalink
ORA-00932 (inconsistent datatypes) when running report on Oracle (por…
Browse files Browse the repository at this point in the history
…t from 1.3) #1698
  • Loading branch information
KremnevDmitry committed May 26, 2023
1 parent 78117d8 commit f467ff2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
fetchPlan="report.selectTemplate">
<loader id="reportsDl">
<query>
<![CDATA[select distinct r from report_Report r, in (r.templates) t where t.reportOutputType = 70]]>
<![CDATA[select r from report_Report r where exists
(select t from report_ReportTemplate t where t.report.id = r.id and t.reportOutputType = 70)]]>
</query>
</loader>
</collection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
fetchPlan="report.selectTemplate">
<loader id="reportsDl">
<query>
<![CDATA[select distinct r from report_Report r, in (r.templates) t where t.reportOutputType = 100]]>
<![CDATA[select r from report_Report r where exists
(select t from report_ReportTemplate t where t.report.id = r.id and t.reportOutputType = 100)]]>
</query>
</loader>
</collection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
class="io.jmix.reports.entity.Report">
<loader id="reportsDl">
<query>
<![CDATA[select r from report_Report r, in (r.templates) t where t.reportOutputType = 90]]></query>
<![CDATA[select r from report_Report r where exists
(select t from report_ReportTemplate t where t.report.id = r.id and t.reportOutputType = 90)]]></query>
</loader>
</collection>
<collection id="reportsDl"
Expand Down

0 comments on commit f467ff2

Please sign in to comment.