@@ -102,7 +102,7 @@ spec = do
102 statement :: Manipulation Tables '[] '[]
102 statement :: Manipulation Tables '[] '[]
103 statement =
103 statement =
104 insertInto #table1 (Values (2 `As` #col1 :* 4 `As` #col2 :* Nil) [])
104 insertInto #table1 (Values (2 `As` #col1 :* 4 `As` #col2 :* Nil) [])
105− Conflict ReturningNil
105+ Conflict (Returning Nil)
106 statement `manipulationRenders`
106 statement `manipulationRenders`
107 "INSERT INTO table1 (col1, col2) VALUES (2, 4);"
107 "INSERT INTO table1 (col1, col2) VALUES (2, 4);"
108 it "correctly renders returning INSERTs" $ do
108 it "correctly renders returning INSERTs" $ do
@@ -120,7 +120,7 @@ spec = do
120 statement :: Manipulation Tables '[] '[]
120 statement :: Manipulation Tables '[] '[]
121 statement =
121 statement =
122 update #table1 (Set 2 `As` #col1 :* Same `As` #col2 :* Nil)
122 update #table1 (Set 2 `As` #col1 :* Same `As` #col2 :* Nil)
123− (#col1 /=* #col2) ReturningNil
123+ (#col1 /=* #col2) (Returning Nil)
124 statement `manipulationRenders`
124 statement `manipulationRenders`
125 "UPDATE table1 SET col1 = 2\
125 "UPDATE table1 SET col1 = 2\
126 \ WHERE (col1 <> col2);"
126 \ WHERE (col1 <> col2);"
@@ -142,7 +142,7 @@ spec = do
142 insertInto #table1 (Values (2 `As` #col1 :* 4 `As` #col2 :* Nil) [])
142 insertInto #table1 (Values (2 `As` #col1 :* 4 `As` #col2 :* Nil) [])
143 (OnConflictDoUpdate
143 (OnConflictDoUpdate
144 (Set 2 `As` #col1 :* Same `As` #col2 :* Nil) (#col1 /=* #col2))
144 (Set 2 `As` #col1 :* Same `As` #col2 :* Nil) (#col1 /=* #col2))
145− ReturningNil
145+ (Returning Nil)
146 statement `manipulationRenders`
146 statement `manipulationRenders`
147 "INSERT INTO table1 (col1, col2) VALUES (2, 4)\
147 "INSERT INTO table1 (col1, col2) VALUES (2, 4)\
148 \ ON CONFLICT DO UPDATE\
148 \ ON CONFLICT DO UPDATE\
@@ -173,7 +173,7 @@ spec = do
173 statement :: Manipulation StudentsTable '[] '[]
173 statement :: Manipulation StudentsTable '[] '[]
174 statement = insertInto #students
174 statement = insertInto #students
175 (Values ("Robert'); DROP TABLE students;" `As` #name :* Nil) [])
175 (Values ("Robert'); DROP TABLE students;" `As` #name :* Nil) [])
176− Conflict ReturningNil
176+ Conflict (Returning Nil)
177 statement `manipulationRenders`
177 statement `manipulationRenders`
178 "INSERT INTO students (name) VALUES (E'Robert''); DROP TABLE students;');"
178 "INSERT INTO students (name) VALUES (E'Robert''); DROP TABLE students;');"
179 describe "JOINs" $ do
179 describe "JOINs" $ do