@@ -178,7 +178,8 @@ in renderManipulation manipulation
178178"INSERT INTO tab (col1, col2) VALUES (2, 4), (6, 8) ON CONFLICT DO UPDATE SET col1 = 2 WHERE (col1 = col2) RETURNING (col1 + col2) AS sum;"
179179-}
180180insertInto
181− :: (SOP.SListI columns, SOP.SListI results, HasTable table (UnconstrainOver schema) columns)
181+ :: ( SOP.SListI columns, SOP.SListI results
182+ , SchemaHasTable table schema columns )
182183 => Alias table -- ^ table to insert into
183184 -> ValuesClause schema params columns -- ^ values to insert
184185 -> ConflictClause columns params
@@ -302,7 +303,9 @@ UPDATE statements
302303-- :}
303304-- "UPDATE tab SET col1 = 2 WHERE (col1 <> col2);"
304305update
305− :: (HasTable table (UnconstrainOver schema) columns, SOP.SListI columns, SOP.SListI results)
306+ :: ( SchemaHasTable table schema columns
307+ , SOP.SListI columns
308+ , SOP.SListI results )
306309 => Alias table -- ^ table to update
307310 -> NP (Aliased (UpdateExpression columns params)) columns
308311 -- ^ modified values to replace old values
@@ -357,7 +360,7 @@ DELETE statements
357360-- :}
358361-- "DELETE FROM tab WHERE (col1 = col2) RETURNING *;"
359362deleteFrom
360− :: (SOP.SListI results, HasTable table (UnconstrainOver schema) columns)
363+ :: (SOP.SListI results, SchemaHasTable table schema columns)
361364 => Alias table -- ^ table to delete from
362365 -> Condition '[table ::: columns] 'Ungrouped params
363366 -- ^ condition under which to delete a row