Skip to content

Commit a808c82

Browse files
committed
Restore correct OptionFlags size (2 bytes) to fix TDS protocol alignment
1 parent c7e52be commit a808c82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/CosmoMSSQL/TDS/TDSRPCRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct TDSRPCRequest {
4545
buf.writeInteger(UInt16(10), endianness: .little) // SP_EXECUTESQL = 10
4646

4747
// Option flags: none
48-
buf.writeInteger(UInt8(0))
48+
buf.writeInteger(UInt16(0), endianness: .little)
4949

5050
// Build the parameter declaration string: "@p1 INT, @p2 NVARCHAR(MAX), ..."
5151
let decl = binds.enumerated().map { (i, v) in

0 commit comments

Comments
 (0)