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

Commit d716a78

Browse files
authored
Merge pull request #195 from pontusmelke/4.0-use-indexes-as-ping
Use db.indexes instead of showCurrentUser as ping
2 parents e19ee1c + 665fd66 commit d716a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypher-shell/src/main/java/org/neo4j/shell/state/BoltStateHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void reconnect(boolean keepBookmark) {
190190

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

193-
String query = activeDatabaseNameAsSetByUser.compareToIgnoreCase(SYSTEM_DB_NAME) == 0 ? "CALL dbms.showCurrentUser()" : "RETURN 1";
193+
String query = activeDatabaseNameAsSetByUser.compareToIgnoreCase(SYSTEM_DB_NAME) == 0 ? "CALL db.indexes()" : "RETURN 1";
194194

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

0 commit comments

Comments
 (0)