bind method

MssqlValue bind(
  1. Object? value
)

The value to hand the driver for this column.

Bound through codec, which means with this column's own SQL type — not the driver's inference. Inference sees a Dart String and sends nvarchar, a Dart number and sends float; against a varchar or a decimal column SQL Server then converts the column rather than the parameter, which changes what the comparison means for money and takes the column's index out of play.

Implementation

MssqlValue bind(Object? value) => codec.encode(encode(value));