fix UPDATE example in executeMany comment
Quote from the PostgreSQL documentation:
> Do not include the table's name in the specification
> of a target column — for example, UPDATE table_name
> SET table_name.col = 1 is invalid.
https://www.postgresql.org/docs/11/sql-update.html
commit9f7af02fb4ef762360cd56320fc89439f6d7a60c
authorChris Martin <ch.martin@gmail.com>
dateThu 20 Jun 2019, 22:54 (7 years ago)
parent2bd1c05
src/Database/PostgreSQL/Simple.hs+1−1
@@ -338,7 +338,7 @@ execute conn template qs = do
338338-- @
339339-- executeMany c [sql|
340340-- UPDATE sometable
341−-- SET sometable.y = upd.y
341+-- SET y = upd.y
342342-- FROM (VALUES (?,?)) as upd(x,y)
343343-- WHERE sometable.x = upd.x
344344-- |] [(1, \"hello\"),(2, \"world\")]