Issue Details (XML | Word | Printable)

Key: DNET-550
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Hennadii
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

NotSupportedException occurs when using ServerType embedded

Created: 03/Apr/14 07:21 AM   Updated: 04/Apr/14 05:22 AM
Component/s: None
Affects Version/s: 4.1.0.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive FirebirdBugs.zip (17 kB)



 Description  « Hide
Exception throwed from Common.DbValue.GetBytes
public byte[] GetBytes()
{
...
switch (this.Field.DbDataType)
...
default: throw new NotSupportedException("Unknown data type");

with this.Field.DbDataType equal to DbDataType.Null



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Hennadii added a comment - 03/Apr/14 07:39 AM
Fix is provided here.
https://github.com/zabulus/NETProvider/commit/bb8ae84ad4dafca7c709f5ad39cba66f5bd9ba20
I have complications to make the pull request for just only this one commit

Jiri Cincura added a comment - 03/Apr/14 10:15 AM
Provide a test-case.

Hennadii added a comment - 04/Apr/14 05:19 AM - edited
Added minimal solution, which reproduces the problem
http://tracker.firebirdsql.org/secure/attachment/12480/FirebirdBugs.zip
Solution consist of
- Model: DatabaseContext + Entities
- Model.Test: One query that reproduces the issue.
If change ServerType to Remote in app.config, exception would not throw.