Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #185 from neo4j/4.0-version-query
Browse files Browse the repository at this point in the history
Change query to execute against system to ping for version
  • Loading branch information
OliviaYtterbrink authored Dec 2, 2019
2 parents 174e8cf + 440b840 commit 1c893a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void reconnect(boolean keepBookmark) {

session = driver.session(builder.build());

String query = activeDatabaseNameAsSetByUser.compareToIgnoreCase(SYSTEM_DB_NAME) == 0 ? "SHOW DEFAULT DATABASE" : "RETURN 1";
String query = activeDatabaseNameAsSetByUser.compareToIgnoreCase(SYSTEM_DB_NAME) == 0 ? "CALL dbms.showCurrentUser()" : "RETURN 1";

resetActualDbName(); // Set this to null first in case run throws an exception
Result run = session.run(query);
Expand Down

0 comments on commit 1c893a8

Please sign in to comment.