Skip to content

Fix Client PID encoding in Login7 structure (#180)#181

Open
reedsemmel wants to merge 1 commit intoelixir-ecto:masterfrom
reedsemmel:reedsemmel/login7-pid
Open

Fix Client PID encoding in Login7 structure (#180)#181
reedsemmel wants to merge 1 commit intoelixir-ecto:masterfrom
reedsemmel:reedsemmel/login7-pid

Conversation

@reedsemmel
Copy link

The dword() encoding type was configured to use big endian instead of little endian. It is only used for the PID and a zero value in this module.

Additionally, this replaces the Tds.Protocol.Login7.pid! implementation with one that uses System.pid() instead of the internal erlang runtime pid, for better parity with other SQL Server clients.

Also adds a test case for this.

The `dword()` encoding type was configured to use big endian instead of
little endian. It is only used for the PID and a zero value in this module.

Additionally, this replaces the Tds.Protocol.Login7.pid! implementation
with one that uses System.pid() instead of the internal erlang runtime
pid, for better parity with other SQL Server clients.

Also adds a test case for this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant