Do not add WHERE clause if only param is order

Fixes #119
This commit is contained in:
Joe Nelson
2015-01-05 22:37:49 -08:00
parent 591f0eb78d
commit 4c74e54ae1
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ limitT r q =
whereT :: Net.Query -> StatementT
whereT params q =
if L.null params
if L.null cols
then q
else q <> (" where ",[],mempty) <> conjunction
where