google-code-export / pymssql

Automatically exported from code.google.com/p/pymssql
GNU Lesser General Public License v2.1
0 stars 0 forks source link

pymssql sets wrong hostname in login record #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. connect to a database

What is the expected output? What do you see instead?
the hostname in an sp_who2 should show the client's hostname.  instead it shows 
the database server's.

What version of the product are you using? On what operating system?
1.0.2.  Confirmed bug in latest .pyx as well.

Please provide any additional information below.
http://www.freetds.org/reference/a00274.html#ga0

DBSETLHOST  (...)   
Set the (client) host name in the login packet.

Note: 'client' host.  .pyx code:

        DBSETLHOST(login, server);

that shouldn't be 'server' there.

Original issue reported on code.google.com by ian.card...@gmail.com on 20 Dec 2010 at 9:06

GoogleCodeExporter commented 9 years ago
I have just committed a fix for this in trunk, revision 213

Original comment by dam...@gmail.com on 4 Jan 2011 at 8:49