> A subquery generated by NHibernate caused a database exception. After
> some debugging, I could track down the problem to the .Net-Provider
> layer.

You could also try replacing the line:

cmd.Parameters.Add("@p0", 0);

with:

cmd.Parameters.AddWithValue("@p0", 0);

The reason that new AddWithValue method was added in .NET 2.0 was precisely
because of the ambiguity caused between the Add(string, object) and
Add(string, *DbType) overloads.

If that fixes the problem (I suspect it will), the bug is with NHibernate -
it shouldn't be calling the Add(string, object) overload anymore... or, if
it needs to work with .NET 1.1 as well, then it should use a different
overload of Add().

Dean.




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to