Closed MangelMaxime closed 2 years ago
It seems strange that ExecuteScalarAsync
is returning a DBNull.Value
. Shouldn't it always return a value?
It appears that in SQL Server, uniqueidentifier
ids are returned differently than int
ids, (using an OUTPUT
clause in the query). So this will require a patch to the library.
FYI, I have added your repro case to the mssql script and have reproduced the fail scenario. So it should be resolved quickly.
Thank you for the quick update
Released v1.0.4: https://github.com/JordanMarr/SqlHydra/releases/tag/issue38-fix
Thank you
I have the following table
If I try to insert a new value with auto generation of the Id column I get an error:
Result: