Details
Description
run on version 443432.
in derby concat with input parameter needs a cast, otherwise becomes long varchar and some operations do not work
(NOTE:already done if concat is inside substring eg. substring(concat(xxx,yyy),n,m)
EJBQL:
select d from EmpBean e left join e.dept d where concat(d.name, 'ahmad') = 'AhmadDept'
OPENJPA ERROR OR SQL PUSHDOWN:
Comparisons between 'LONG VARCHAR' and 'LONG VARCHAR' are not supported.
[code=30000, state=42818]
SUGGESTED SQL PUSHDOWN:
select t1.deptno, t1.name FROM EmpBean t0 LEFT OUTER JOIN DeptBean t1 ON t0.dept_deptno = t1.deptno WHERE (cast((t1.name||?) as Varchar(1000))) = ?