Skip to content

Length function throws ambiguous exception when you pass it an argument #290

Closed
hmobius opened this Issue May 7, 2013 · 1 comment

2 participants

@hmobius
hmobius commented May 7, 2013

The Length function does not take any arguments. But when you pass it one - for example

var albums = Database.Open().Albums.Select(db.Albums.Title.Length(123));

you get the following exception.

Query returned a Simple.Data.SimpleQuery
Simple.Data.Ado.AdoAdapterException
The len function requires 1 argument(s).

The message is wrong for two reasons : its the Length function and it requires 0 arguments.
It should also be throwing an ArgumentException.

@markrendle
Owner

Unfortunately that's just wrapping a SqlException and I'm limited as to what I can do.

@markrendle markrendle closed this May 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.