Skip to content

Commit

Permalink
Merge pull request #259 from thobe/1.1-routing-refactor
Browse files Browse the repository at this point in the history
Refactor routing logic to better handle failures
  • Loading branch information
pontusmelke authored Oct 26, 2016
2 parents 0b2b4b2 + 28a3c3f commit 9dcbbf9
Show file tree
Hide file tree
Showing 25 changed files with 3,722 additions and 1,208 deletions.
175 changes: 0 additions & 175 deletions driver/src/main/java/org/neo4j/driver/internal/ClusterView.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ public StatementResult run( String statementText, Value statementParameters )
public StatementResult run( Statement statement )
{
ensureConnectionIsValidBeforeRunningSession();
return run( connection, statement );
}

public static StatementResult run( Connection connection, Statement statement )
{
InternalStatementResult cursor = new InternalStatementResult( connection, null, statement );
connection.run( statement.text(), statement.parameters().asMap( Values.ofValue() ),
cursor.runResponseCollector() );
Expand Down
Loading

0 comments on commit 9dcbbf9

Please sign in to comment.