Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
ijuma opened this Issue · 1 comment

2 participants

@ijuma

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@1a54d29

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

@szeiger
Owner

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
@nafg nafg referenced this issue from a commit in nafg/slick
@szeiger szeiger Improve error message to guard against illegal use of raw table objects.
Fixes github issue #51.
9f30263
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.