Hello, I'm having a problem with this query below. I'm connecting to 
OrientDB using the C# driver and running the query in my c# code. All this 
code is in a loop and the queries in the try block works for a number of 
iterations and afterwards fails throwing a FormatException. At the point it 
fails I copy out the query and run it in the orientDB web interface and it 
returns the expect records so I'm sure it's not the input. So I'm so 
confused as to why it succeeds sometimes and fails at other times even when 
the input string is correct. Has anyone encountered a similar problem? 
Someone please help.

string origin = route[i].Trim();
string destination = route[i + 1].Trim();

List<ODocument> document = new List<ODocument>();

try
{
                                
     document = database.Query("select from (traverse out_Connects from " + 
origin + ") where in = " + destination);

     //document = database.Query("select from Connects where (out = " + 
origin + " and in = " + destination + ")");
}
catch (Exception e)
{
    //document = database.Query("select from Connects where (out = " + 
origin + " and in = " + destination + ")");
}

-- 

--- 
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