Issue Details (XML | Word | Printable)

Key: OPENJPA-56
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: George Hongell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

in derby concat with input parameter needs a cast, otherwise becomes long varchar and some operations do not work

Created: 20/Sep/06 04:55 PM   Updated: 01/Mar/07 02:20 AM
Return to search
Component/s: query
Affects Version/s: None
Fix Version/s: 0.9.7

Time Tracking:
Not Specified

File Attachments:
  Size
Java Archive File failureEntities.jar 2006-09-20 04:56 PM George Hongell 7 kB
Environment:
Windows xp, derby, openjpa version 443432.

Resolution Date: 01/Mar/07 02:20 AM


 Description  « Hide
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. {SELECT t1.deptno, t1.budget, t1.mgr_empid, t1.name, t1.reportsTo_deptno FROM EmpBean t0 LEFT OUTER JOIN DeptBean t1 ON t0.dept_deptno = t1.deptno WHERE ((t1.name||?) = ?)} [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))) = ? {String ahmad, String AhmadDept}



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
George Hongell added a comment - 20/Sep/06 04:56 PM
entity java files and derby ddl script to use to recreate this issue

George Hongell made changes - 20/Sep/06 04:56 PM
Field Original Value New Value
Attachment failureEntities.jar [ 12341226 ]
David Wisneski added a comment - 01/Feb/07 01:24 AM
already fixed in latest code

David Wisneski made changes - 01/Feb/07 01:24 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Patrick Linskey made changes - 01/Mar/07 02:17 AM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Patrick Linskey made changes - 01/Mar/07 02:18 AM
Fix Version/s 0.9.7 [ 12312340 ]
Patrick Linskey made changes - 01/Mar/07 02:20 AM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]