Describe the bugThis line sets the scanType for sql_variant to nil. This can break downstream libraries when processing rows from a column of this type as it leads to confusion as to what the true type should be (despite the fact that the driver seems to cast these values to string values).
The type should be either an empty interface or string to correlate with the data that is returned from the driver.
See grafana/grafana#81935 for details on the issue that lead to us identifying this.
Describe the bug This line sets the
scanType
forsql_variant
tonil
. This can break downstream libraries when processing rows from a column of this type as it leads to confusion as to what the true type should be (despite the fact that the driver seems to cast these values to string values).The type should be either an empty interface or
string
to correlate with the data that is returned from the driver.See grafana/grafana#81935 for details on the issue that lead to us identifying this.