Skip to content

Commit

Permalink
Increment BQ DB-API thread safety. (googleapis#3693)
Browse files Browse the repository at this point in the history
Increment to 2 per https://www.python.org/dev/peps/pep-0249/#threadsafety. The cursor object includes some state for paging through results and other things which are not protected by locs.

Closes googleapis#3522.
  • Loading branch information
tswast authored and landrito committed Aug 21, 2017
1 parent 852e9d3 commit 8765c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigquery/google/cloud/bigquery/dbapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@

apilevel = '2.0'

# Threads may share the module, but not connections.
threadsafety = 1
# Threads may share the module and connections, but not cursors.
threadsafety = 2

paramstyle = 'pyformat'

Expand Down

0 comments on commit 8765c36

Please sign in to comment.