Fixes error code 42803 when trying to query a view with a column named count.

This commit is contained in:
Diogo Biazus
2015-08-01 00:15:17 -04:00
parent e724c2df00
commit 449cacdacf
4 changed files with 19 additions and 3 deletions
+5
View File
@@ -18,6 +18,11 @@ spec =
createJsonData)
. afterAll_ (clearTable "items" >> clearTable "no_pk" >> clearTable "simple_pk")
. around withApp $ do
describe "Querying a table with a column called count" $
it "should not confuse count column with pg_catalog.count aggregate" $
get "/has_count_column" `shouldRespondWith` 200
describe "Querying a nonexistent table" $
it "causes a 404" $
get "/faketable" `shouldRespondWith` 404