cancel
Showing results for 
Search instead for 
Did you mean: 

NXQL query with backslash

hgonzalez_
Confirmed Champ
Confirmed Champ

I am trying to execute this query with CoreSession:

CoreSession.query( "select * from Document where dc:title = 'document\' and ecm:currentLifeCycleState <> 'deleted'" )

The \ is making the query crash. If I put the \ in any other position than at the end it works. I also have tried to escape the title value with NXQLQueryBuilder.prepareStringLiteral() with it doesn't do anything. Any idea about how to execute this query or could be a Nuxeo bug?

4 REPLIES 4

bruce_Grant
Elite Collaborator
Elite Collaborator

Have you tried a double backslash just before the single quote?

hgonzalez_
Confirmed Champ
Confirmed Champ

Yes, it also fails.

Florent_Guillau
World-Class Innovator
World-Class Innovator

Thanks for the report, it's a bug in the parser. A ticket has been entered: NXP-10340. You can Watch the ticket to be notified when a fix is done.

Thanks, I will wait for the fix.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.