Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
asthamohta committed Aug 9, 2023
1 parent 681c8ee commit 3c62fe4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions google/cloud/spanner_dbapi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def connect(
pool=None,
user_agent=None,
client=None,
route_to_leader_enabled=False,
route_to_leader_enabled=True,
):
"""Creates a connection to a Google Cloud Spanner database.
Expand Down Expand Up @@ -557,6 +557,8 @@ def connect(
:returns: Connection object associated with the given Google Cloud Spanner
resource.
"""
import pdb
pdb.set_trace()
if client is None:
client_info = ClientInfo(
user_agent=user_agent or DEFAULT_USER_AGENT,
Expand All @@ -568,14 +570,14 @@ def connect(
credentials,
project=project,
client_info=client_info,
route_to_leader_enabled=False,
route_to_leader_enabled=route_to_leader_enabled,
)
else:
client = spanner.Client(
project=project,
credentials=credentials,
client_info=client_info,
route_to_leader_enabled=False,
route_to_leader_enabled=route_to_leader_enabled,
)
else:
if project is not None and client.project != project:
Expand Down

0 comments on commit 3c62fe4

Please sign in to comment.