cloudflare / sqlalchemy-clickhouse

Apache License 2.0
314 stars 105 forks source link

use Database.request_session to prevent from losing auth #47

Closed JackWyj closed 4 years ago

JackWyj commented 5 years ago

When passed (username, password) to Connection, i got Exception: Code: 194, e.displayText() = DB::Exception: Password required for user default. The auth is stored in self.request_session, but it isn't used to post request.

JackWyj commented 5 years ago

sorry, didn't notice the another PR #45 , it solved the same problem.

vavrusa commented 4 years ago

This seems like a better solution than rewriting DSN, do you mind rebasing?

JackWyj commented 4 years ago

@vavrusa seems it has been solved, and i have rebased mine, i have seen the updates about the problem. thx!