@@ -55,10 +55,9 @@ spec = do
5555 `shouldBe`
5656 "INSERT INTO table1 (col1, col2) VALUES (2, 4);"
5757 it "should be safe against SQL injection in literal text" $ do
58− pendingWith "gotta find an escape function"
59− -- renderQuery (select (literalText `from` table1))
60− -- `shouldBe`
61− -- "SELECT '\\'DROP TABLE table1;' AS literal FROM table1;"
58+ renderQuery (select (literalText `from` table1))
59+ `shouldBe`
60+ "SELECT E''';DROP TABLE table1;' AS literal FROM table1;"
6261
6362type Columns = '[ '("col1", 'PGInt4), '("col2", 'PGInt4)]
6463type Tables = '[ '("table1", Columns)]