You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Generic type function command.ExecuteScalarAsync throws exception when Db returns no rows (Nothing)
Example:
ClickHouseCommand command = Connection.CreateCommand();
...
command.ExecuteScalarAsync<T> // throws exception (Cast from DbNull to T) when Db returns no rows (Nothing)
For that reason we cannot properly use generic function like command.ExecuteScalarAsync<string/long/int?...>
Is it possible to map DbType.DbNull to simple Null, because DbType.DbNull cannot be casted to nullable<int, string...>
The text was updated successfully, but these errors were encountered:
Description
Generic type function command.ExecuteScalarAsync throws exception when Db returns no rows (Nothing)
Example:
For that reason we cannot properly use generic function like
command.ExecuteScalarAsync<string/long/int?...>
Is it possible to map
DbType.DbNull
to simpleNull
, becauseDbType.DbNull
cannot be casted tonullable<int, string...>
The text was updated successfully, but these errors were encountered: