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
When trying to read a binary column, sometimes it errors out when accessing it from the DbDataReader. I say sometimes because when the declaredColumnTypes variable in the NuoDbDataReader is not set it doesn't error out.
The reason for the failure is that, when the declaredColumnTypes are available, the value returned for a column is converted into that type. For the VARBINARY column, this type is BLOB, that is mapped into a .Net type of System.Object. But the returned byte[] value can't be converted into a generic Object, so the exception is thrown. We'll look into fixing this mapping.
When trying to read a binary column, sometimes it errors out when accessing it from the DbDataReader. I say sometimes because when the declaredColumnTypes variable in the NuoDbDataReader is not set it doesn't error out.
If it helps, here's a small program that reproduces the issue: https://gist.github.com/JeffHenson/17b95e5b12f5428ebe26618a06901d97
This was tested with commit e5823eb.
The text was updated successfully, but these errors were encountered: