mssql+pymssql to support host:port in url

Issue #1952 resolved
Former user created an issue

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)

  1. Log in to comment