Skip to content

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

Merged
mjaric merged 1 commit intoelixir-ecto:masterfrom
reedsemmel:reedsemmel/login7-pid
Feb 25, 2026
Merged

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

Conversation

@reedsemmel
Copy link
Copy Markdown
Contributor

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.
@mjaric mjaric merged commit d7b163c into elixir-ecto:master Feb 25, 2026
4 checks passed
@reedsemmel reedsemmel deleted the reedsemmel/login7-pid branch February 26, 2026 03:30
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.

2 participants