- attached mssql_pymssql_port.patch
mssql+pymssql to support host:port in url
Issue #1952
resolved
When using mssql+pymssql to connect to a database, the port in a host:port url will be ignored. For example in this URL:
mssql+pymssql://user:pass@localhost:1453/MyDB
The port will be stripped out from the connect parameters. The reason for that is that pymssql is expecting the port to be part of the hostname.
While one could use a comma to pass the port number, I think it makes sense to have the usual host:port format work, attached patch adds the port back to the hostname in create_connect_args.
Comments (4)
-
Account Deleted -
repo owner - changed milestone to 0.6.5
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.6.5 (automated comment)
- Log in to comment
Patch to add support for host:port format to mssql+pymsql