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

Commit

Permalink
Change query to execute against system to ping for version
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaYtterbrink committed Dec 2, 2019
1 parent 174e8cf commit 440b840
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 440b840

Please sign in to comment.