cmd += "let b = select from v limit 1;";
cmd += "create edge from $a to $b;";
cmd += "commit;";
cmd += "return $a;";
Object result = database.command(new OCommandScript("sql", cmd)).execute();
Assert.assertTrue(result instanceof OIdentifiable);
Assert.assertTrue(((OIdentifiable) result).getRecord() instanceof ODocument);
Assert.assertTrue((Boolean) ((ODocument) ((OIdentifiable) result).getRecord()).field("script"));
}