Commit 43220cd
fix: correct EnvChange string-type detection in TdsDecoder
Types 5,6 are DWORD pairs (binary), not Unicode strings.
Type 9 (commit tx), 12 (defect tx) are binary transaction descriptors.
Types 19,20 are routing/reserved binary data.
Only types 1-4 (database/language/charset/packetsize) and
13 (log shipping), 18 (user instance) use B_VARCHAR format.
This caused EndOfStreamException during BeginTransaction_CommitAsync
because COMMIT (type 9) has an 8-byte binary old-value but the code
tried to read 16 bytes (8 × 2) as UTF-16.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 73375ae commit 43220cd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments