examples/HDBC/PostgreSQL: modify examples to use nulls ordering.

(grafted from d0260b7dfe3865f0711917d7c4d9bc498af7ae39)
This commit is contained in:
Kei Hibino 2017-07-24 14:30:30 +09:00
parent 5ae745d881
commit 33f6f5ecbd
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ haskUserGroup =
wheres -< g ?!? Group.name' `likeMaybe` "Hask%"
asc -< u ?! User.id'
orderBy' Asc NullsLast -< mg
returnA -< u >< mg ?! snd'

View File

@ -53,7 +53,7 @@ haskUserGroup =
, () <- wheres $ g ?!? Group.name' `likeMaybe` "Hask%"
, () <- asc $ u ?! User.id'
, () <- orderBy' mg Asc NullsLast
]
data UserOrGroup = UserOrGroup { mayUser :: Maybe User, mayGroup :: Maybe Group }