Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotSupportedException occurs when using ServerType embedded [DNET550] #524

Closed
firebird-automations opened this issue Apr 3, 2014 · 7 comments

Comments

@firebird-automations
Copy link

Submitted by: Hennadii Zabula (zabulus)

Attachments:
FirebirdBugs.zip

Votes: 1

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

@firebird-automations
Copy link
Author

Commented by: Hennadii Zabula (zabulus)

Fix is provided here.
zabulus/NETProvider@bb8ae84
I have complications to make the pull request for just only this one commit

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Provide a test-case.

@firebird-automations
Copy link
Author

Commented by: Hennadii Zabula (zabulus)

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.

@firebird-automations
Copy link
Author

Modified by: Hennadii Zabula (zabulus)

Attachment: FirebirdBugs.zip [ 12480 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

I'm unable to reproduce the error with 4.7.0.0.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Closed [ 6 ]

resolution: Cannot Reproduce [ 5 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants