Skip to content

ExecuteScalar doesn't cast correctly #237

@xPaw

Description

@xPaw

I've been trying to use something like ExecuteScalar<App> and it appears to be casting incorrectly compared to Query<App>, which results in this exception: Invalid cast from 'System.String' to 'xx.App'.

I believe changing Query to ExecuteScalar in this test will reproduce the issue.

EDIT: It appears that ExecuteScalar is supposed to only return the first COLUMN of the first row, that's completely my fault.

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