Skip to content

Commit

Permalink
Replace uuid1 with uuid4
Browse files Browse the repository at this point in the history
Deal with parallel queries on same host
  • Loading branch information
xzkostyan committed Sep 3, 2020
1 parent fb5fce6 commit 1a840a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clickhouse_sqlalchemy/drivers/http/connector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from uuid import uuid1
from uuid import uuid4

from .escaper import Escaper
from .transport import RequestsTransport
Expand Down Expand Up @@ -234,7 +234,7 @@ def _reset_state(self):

def _begin_query(self):
self._state = self._states.RUNNING
self._query_id = uuid1()
self._query_id = uuid4()

def _end_query(self):
self._state = self._states.FINISHED

0 comments on commit 1a840a5

Please sign in to comment.