git.iko.soy/typeable/postgresql-simple
on master help sign in
Merge pull request #18 from chris-martin/patch-1

fix UPDATE example in executeMany comment

commitf2d0a2fa2c91d513b613fe12039694208aa1ef90 authorOleg Grenrus <oleg.grenrus@iki.fi> dateFri 21 Jun 2019, 10:16 (7 years ago) parent2bd1c059f7af02
1 file changed+1−1
src/Database/PostgreSQL/Simple.hs+1−1
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\")]