History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CASTOR-951
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Werner Guttmann
Reporter: Martin Fuchs
Votes: 0
Watchers: 0
Operations

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

Question marks in OQL WHERE string constants

Created: 04/Dec/04 06:18 AM   Updated: 19/Apr/05 10:53 AM
Component/s: JDO
Affects Version/s: 0.9.6RC1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File castor-1814.patch (4 kb)

Environment:
Operating System: Windows XP
Platform: PC

Bugzilla Id: 1814


 Description  « Hide
As found in the discussions about bug 1540, there is a problem parsing OQL
WHERE clauses containing string or character constants including question mark
("?") characters. It results in this exception, because this character is
misunderstood as bind variable place holder:

java.lang.ArrayIndexOutOfBoundsException: 0
at org.exolab.castor.util.SqlBindParser.bindJdbcValues(SqlBindParser.java:237)
at org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.execute(SQLEngine.java:1766)
at org.exolab.castor.persist.TransactionContext.query
(TransactionContext.java:782)
at org.exolab.castor.jdo.engine.OQLQueryImpl.execute(OQLQueryImpl.java:474)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Martin Fuchs - 04/Dec/04 06:19 AM
Created an attachment (id=802)
proposed patch including test case

Werner Guttmann - 04/Dec/04 10:01 AM
Patch applied as submitted.