I'm using NH 2.1.2 with Informix and the contrib Linq provider; Take works
fine for me.
What version, dialect and driver are you using? What does your complete
query look like?

    Diego


On Tue, Nov 9, 2010 at 08:07, Erik <[email protected]> wrote:

> It looks like a bug. I have a linq query resulting in sql with 3
> parameters that works fine but when I add a take(10) I get an range
> exception.
>
>  System.IndexOutOfRangeException: Invalid index 3 for this
> IfxParameterCollection with Count=3.
>
> The sql is like: select first 10 from ......
>
> I think that the 10 is directly injected in the sql string but also
> handled as a parameter in one place but not part of the
> parametercollection
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to