Skip to content

sql_variant invalid scanType value #186

@aangelisc

Description

@aangelisc

Describe the bug
This 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions