-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
ExecuteScalar doesn't cast correctly #237
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels