Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Issue with namedQuery/setParameter and string which contains "'" (single quote)

Obvious question which must be asked: Are you using a parameter for
e.name? Can you post your namedquery?

./tch



On Mon, Sep 22, 2008 at 8:17 AM, Jan Vissers <Jan.Vissers@xxxxxxxxxx> wrote:
> I get the following error:
>
> Caused by: Exception [EclipseLink-8024] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.JPQLException
> Exception Description: Syntax error parsing the query [select count(e) from Selection e  where e.owner = 'tangelo_admin' and e.name = 'Jan's selectie' and e.deleted = false], line 1, column 84: syntax error at [s].
> Internal Exception: MismatchedTokenException(66!=-1
>
> This must be a simple one right, what am I missing. I'm trying to query records for which e.name = "Jan's selectie"
>
> Thanks,
> -J.
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>


Back to the top