when I am trying to insert with the following query 

OrientGraphNoTx graph = factory.getNoTx();

*  try* {

String query = "INSERT INTO SuperMarket (Item,Code,Quantity) 
VALUES('banana',12.33,50)";

graph.command(*new* OCommandSQL(query).execute());

graph.commit();

} *catch* (Exception e) {

graph.rollback();

System.*out*.println(e);

} *finally* {

graph.shutdown();

}

I am getting exception but the query is executed(data inserted) 

why its committed rather than rollback()

but actual query is  graph.command(*new* OCommandSQL(query)).execute();


please help me any one (I am connecting at remote db)


-- 

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