Passing a non-SimpleExpression parameter to Having should throw an ArgumentException #287

Closed
hmobius opened this Issue Apr 23, 2013 · 0 comments

Projects

None yet

1 participant

@hmobius
hmobius commented Apr 23, 2013

If I add a call to Having but pass it a parameter that is not a SimpleExpression - an integer string, etc (see below), Simple.Data throws a RuntimeBinderException.

db.Albums.All()
   .Select(db.Albums.Artists.Name, 
           db.Albums.AlbumId.Count().As("NumberOfAlbums"))
   .Having(123);

It should throw an ArgumentException.

@markrendle markrendle added a commit that closed this issue May 21, 2013
@markrendle Fixes #287 1f035a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment