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

FbParameter constructor not treating 0 as number, but uses null [DNET536] #514

Closed
firebird-automations opened this issue Dec 13, 2013 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Zvjezdan Tomicevic (zeko)

Hi.
After using Fbparameeter constructor as
FbParameter pTableId = new FbParameter("@table_id", 0); (string parametername, object value)
pTableId.Value remains null instead of zero.
Fix is:
pTableId.Value = 0;
But it was hell to debug and locate

@firebird-automations
Copy link
Author

Commented by: @cincuranet

This call takes ctor "FbParameter(string parameterName, FbDbType fbType)", because the enum (int) is more specific than the object.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

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