Subject Re: My Integer Problem
Author Adam
--- In firebird-support@yahoogroups.com, "ShofB" <shofb@c...> wrote:
>
> Again, thanks to all that offered advice. I did a few experiments
and found what seems to be a bug in the .net interface. I am using
the following code:
>
> FbCommand cmd = new FbCommand("ADDDIRECTORY", conn);
> cmd.CommandType = CommandType.StoredProcedure;
> cmd.Parameters.Add("@ID",ids[(int)FileTypes.Other]++);
> cmd.Parameters.Add("@PATH", path);
> cmd.Parameters.Add("@STORAGEID",0);
>
> Having the STORAGEID hardcoded to 0 causes the problem. If I create
an integer, assign the value to it and then reference the int in the
Parameters.Add it works fine.

Good to hear.

If you have not already, post your observations to the firebird .net
group. If it is a bug, then it is more likely to be seen by the people
who need to fix it in that list than here.

Adam