Describe the bug
The bug is when there is a special character in the password, the problem seems to be in the file drives/native/base.py where the password and the username get quote two times. First in the function create_connect_args and then in the render_as_string method from sqlalchemy url:
So a password 123+X becomes 123%252BX when it should be 123%2BX
To Reproduce
from sqlalchemy import text
from sqlalchemy.engine import create_engine
if __name__ == "__main__":
url = "clickhouse+native://default:123+X@localhost:9000/default"
engine = create_engine(url)
with engine.connect() as conn:
conn.execute(text("SELECT version();"))
Expected behavior
Correctly connect to the database with a password with a special character
Describe the bug The bug is when there is a special character in the password, the problem seems to be in the file
drives/native/base.py
where the password and the username getquote
two times. First in the functioncreate_connect_args
and then in therender_as_string
method from sqlalchemy url:So a password
123+X
becomes123%252BX
when it should be123%2BX
To Reproduce
Expected behavior Correctly connect to the database with a password with a special character
Versions