Bill Atkins
unread,Jun 3, 2012, 5:17:39 PM6/3/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ScalaQuery
I'm having a strange problem with orderBy. The following query:
for(r <- this if r.isActive is true; _ <- Query orderBy
orderColumn) yield r.mapped
generates a number of duplicates, so I checked the value of
selectStatement to see that the table is being joined to itself:
SELECT
"t1"."id","t1"."name","t1"."default_category_id","t1"."is_active" FROM
"payee" "t1","payee" "t2" WHERE ("t1"."is_active"=true) ORDER BY
"t2"."name"
If I remove the orderBy criterion, there's only one table in the FROM
clause.
Am I doing something wrong?