Hi all,

I was trying version 2.1-rc2 with my code and I identified a change in 
behavior when compared to 2.0.x versions.

I'll refer to the code below.  What I'm trying to achieve is to add a 
vertex on a class that has an index created with 
create index Path.full ON Path (full) UNIQUE
and then look for it using getVertexByKey method.

In 2.0.8 the snippet works and prints "found". In 2.1 it prints "not 
found!".

Now, the weird part is that if path variable does not contain backslashes, 
then it works fine. 

anything changed in 2.1 regarding index values that interprets \ specially? 
any kind of encoding is necessary? is this just a bug?

Thank you,
Adrian


OrientGraphFactory factory = new OrientGraphFactory(connection, user, 
pass).setupPool(1,10);
OrientBaseGraph graph = factory.getNoTx();

//....ommited handling for brevity

//String path = "path3"; //this works
String path = "\\\\server\\path1\\path2\\path3"; //this does not work

Vertex added = graph.addVertex("class:Path", "full", path);

Vertex v = graph.getVertexByKey("Path.full", path);
if (v == null) {
System.out.println("not found!");
} else {
System.out.println("found");
}

graph.removeVertex(added);

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to