majensen / libneo4j-client

neo4j-client -- Neo4j Command Line Interface (CLI)
https://neo4j-client.net
Apache License 2.0
1 stars 2 forks source link

Current dbname not reported correctly #3

Closed johannessen closed 3 years ago

johannessen commented 3 years ago

Running 1b2a58aff051d424fd216784a0cb9404db94a7fc:

neo4j> :status
Connected to 'neo4j://neo4j@localhost:7687' (insecure) [Neo4j/4.2.1]
neo4j> :dbname system
db set
neo4j> :dbname

Expected

current db is 'system'

Actual

current db is 'e'

Reproducibility: Sometimes. I’ve also seen the db name being reported as \ or the empty string. Sometimes, the correct name is reported. Repeated invocations of :dbname may yield identical or different results. A memory corruption issue…?

majensen commented 3 years ago

Yes - I had this issue too, but I guess I didn't nail it. Will look