Skip to content

Commit cb7ccb3

Browse files
committed
Verify connection against provided db
1 parent 7056167 commit cb7ccb3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
- Fix reporting error based on http responses from the Aura-API with an invalid JSON body. Earlier the client would report JSONDecodeError instead of showing the actual issue.
1313
- Fixed a bug where retryable queries wouldnt work with bookmarks.
14+
- Fixed a bug where `GdsSession.get_or_create` could not verify the connection to the database if the `neo4j` database would not present.
1415

1516
## Improvements
1617

graphdatascience/query_runner/neo4j_query_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def create_for_db(
4848
if aura_ds:
4949
Neo4jQueryRunner._configure_aura(config)
5050

51-
driver = neo4j.GraphDatabase.driver(endpoint, auth=auth, **config)
51+
driver = neo4j.GraphDatabase.driver(endpoint, auth=auth, database=database, **config)
5252

5353
query_runner = Neo4jQueryRunner(
5454
driver,

0 commit comments

Comments
 (0)