r2dbc / r2dbc-mssql

R2DBC Driver for Microsoft SQL Server using TDS (Tabular Data Stream) Protocol
Apache License 2.0
178 stars 32 forks source link

Capture encoder in `Encoded` instead of the plain value #272

Closed mp911de closed 1 year ago

mp911de commented 1 year ago

We should capture a supplier that returns a byte buffer instead of the actual buffer to enable retries with bindings. Currently, the value is disposed after copying the encoded buffer to the request message. This prevents us from retrying RPC requests.

Prerequisite to fix #271