Re: [Neo4j] Using index with a '-' in the name with cypher

113 views
Skip to first unread message

Michael Hunger

unread,
Jul 26, 2012, 4:53:22 PM7/26/12
to ne...@googlegroups.com
Quote with backticks `Some-Index`


Michael

Am 26.07.2012 um 17:14 schrieb rob:

Hey,

I am trying to use an index in cypher with a dash in it and I get a syntax error

This works:

START n=node:SomeIndex(email = "f...@bar.com") RETURN n

This doesn't however:

START n=node:Some-Index(email = "f...@bar.com") RETURN n

Is there someway of using escaping or quoting the index name?

R

Peter Neubauer

unread,
Jul 27, 2012, 1:56:49 AM7/27/12
to ne...@googlegroups.com
Just tested,
this is a real bug, backticks don't work for index identifiers, raised

https://github.com/neo4j/community/issues/739


Thank you rob for reporting!

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Wanna learn something new? Come to @graphconnect.

Ben Tu

unread,
Apr 24, 2013, 2:08:00 AM4/24/13
to ne...@googlegroups.com
Hi Peter

I found the same bug in database version neo4j-community-1.9.M02-windows.

I tried to follow the bug by the link but it's broken, 404 not found

How can I trace this bug in the latest github? Is is fixed in the latest version or is it still open?

Thanks

Ben

Peter Neubauer

unread,
Apr 24, 2013, 4:24:21 AM4/24/13
to Neo4j User
Ben,
have you tried 1.9.RC1 to see if this is still there?

/peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

The authoritative book on graph databases - http://graphdatabases.com
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Ben Tu

unread,
Apr 28, 2013, 8:34:57 PM4/28/13
to ne...@googlegroups.com
Hi Peter
 
The same bug exists in 1.9 RC1
 
But if I use backquote it works in 1.9M2 and 1.9RC
 
So we decide to use backquote to escape the hyphen.
 
Thanks
 
Peter

Peter Neubauer

unread,
Apr 30, 2013, 6:35:10 AM4/30/13
to Neo4j User
Ben,
1.9.RC2 is coming out soon. Do you mind testing it then, and raise a
bug if that is not fixed?

/peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

The authoritative book on graph databases - http://graphdatabases.com
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j


Reply all
Reply to author
Forward
0 new messages