Open BTheunissen opened 1 week ago
This could be something in the SingleStore SQLAlchemy dialect, or maybe the SingleStoreDB client itself. What version of the client are you running?
I am running the latest release of SingleStore SQLAlchemy 1.1.1, and SingleStore Client 1.7.2.
I am currently switching from using
mypysql
to thesinglestore-python
client in order to get more granular type information when inspecting tables programmatically. In this instance I am using the library with the SingleStore SQL Alchemy project.It appears that if certain special characters specifically
[
and]
are contained within the user password, then the URL parsing fromurllib
fails.I've validated that if I URL encode the
[
and]
values to%5B
and%5D
respectively, the issue still occurs even though if I test the url withurlsplit
with Python on my system directly, then it can be successfully split.I have a feeling that the call at
base.py:L386
in the stack trace contains the issue, as we explicitly render the url back as a string which could undo any URL encoding that has been done upstream.Would be grateful for a fix, thanks!
Stack Trace: