@@ -1009,7 +1009,7 @@ data TableConstraint
1009 = UnsafeTableConstraint { renderTableConstraint :: ByteString }
1009 = UnsafeTableConstraint { renderTableConstraint :: ByteString }
1012− :: (forall table. Condition '[] '[table ::: columns] 'Ungrouped)
1012+ :: Condition '[] '[table ::: columns] 'Ungrouped
1013 -> TableConstraint schema columns
1013 -> TableConstraint schema columns
1014check condition = UnsafeTableConstraint $
1014check condition = UnsafeTableConstraint $
1015 "CHECK" <+> parenthesized (renderExpression condition)
1015 "CHECK" <+> parenthesized (renderExpression condition)
@@ -1255,7 +1255,7 @@ data ConflictClause params columns where
1255 OnConflictDoNothing :: ConflictClause params columns
1255 OnConflictDoNothing :: ConflictClause params columns
1256 OnConflictDoUpdate
1256 OnConflictDoUpdate
1257 :: NP (Aliased (UpdateExpression params columns)) columns
1257 :: NP (Aliased (UpdateExpression params columns)) columns
1258− -> (forall table. Condition params '[table ::: columns] 'Ungrouped)
1258+ -> Maybe (Condition params '[table ::: columns] 'Ungrouped)
1259 -> ConflictClause params columns
1259 -> ConflictClause params columns
1261renderConflictClause
1261renderConflictClause
@@ -1265,10 +1265,12 @@ renderConflictClause
1265renderConflictClause = \case
1265renderConflictClause = \case
1266 Conflict -> ""
1266 Conflict -> ""
1267 OnConflictDoNothing -> " ON CONFLICT DO NOTHING"
1267 OnConflictDoNothing -> " ON CONFLICT DO NOTHING"
1268− OnConflictDoUpdate updates wh
1268+ OnConflictDoUpdate updates whMaybe
1269 -> " ON CONFLICT DO UPDATE SET"
1269 -> " ON CONFLICT DO UPDATE SET"
1270 <+> renderCommaSeparatedMaybe renderUpdateExpression updates
1270 <+> renderCommaSeparatedMaybe renderUpdateExpression updates
1271− <+> "WHERE" <+> renderExpression wh
1273+ Just wh -> " WHERE" <+> renderExpression wh
1273{-----------------------------------------
1275{-----------------------------------------
1274UPDATE statements
1276UPDATE statements
@@ -1290,7 +1292,7 @@ update
1290 :: (HasTable table schema columns, SListI columns, SListI results)
1292 :: (HasTable table schema columns, SListI columns, SListI results)
1291 => Alias table
1293 => Alias table
1292 -> NP (Aliased (UpdateExpression params columns)) columns
1294 -> NP (Aliased (UpdateExpression params columns)) columns
1293− -> (forall tab. Condition params '[tab ::: columns] 'Ungrouped)
1295+ -> Condition params '[tab ::: columns] 'Ungrouped
1294 -> ReturningClause params columns results
1296 -> ReturningClause params columns results
1295 -> Manipulation schema params results
1297 -> Manipulation schema params results
1296update table columns wh returning = UnsafeManipulation $
1298update table columns wh returning = UnsafeManipulation $