"Unexpected node" when performing Query on column of Mapped projection #51

Closed
ijuma opened this Issue Oct 14, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

ijuma commented Oct 14, 2012

The easiest way to explain this is to check the following addition to MapperTest:

val usersCount = Users.length.run
assertEquals(usersCount, Query(Users.last).list.size)

ijuma/slick@1a54d29

This is similar to issue #50 but the exception was slightly different so filed a separate issue.

Owner

szeiger commented Oct 15, 2012

This is caused by an illegal use of a raw table object (Query(Users.last) instead of Query(Users).map(_.last)).

@szeiger szeiger closed this Oct 15, 2012

nafg added a commit to nafg/slick that referenced this issue Jan 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment