zillow / ctds

Python DB-API 2.0 library for MS SQL Server
MIT License
83 stars 12 forks source link

Ability to specify client hostname for connection #20

Closed adh closed 6 years ago

adh commented 6 years ago

We have application that needs to pass hostname of it's real client (instead of the API server's hostname) in client_hostname of LOGINREC structure. Thus it would be helpful for cTDS to support client_hostname argument in ctds.connect() (in the same way as currently existing appname)

joshuahlang commented 6 years ago

I'll look into this. It would also be useful when running in a Docker container I'd imagine.

joshuahlang commented 6 years ago

Fixed in v1.8.0.