Disable auto-transactions

This commit is contained in:
Joe Nelson
2014-08-23 15:34:09 -07:00
parent 9df8a7b99b
commit d6004ee41f
2 changed files with 5 additions and 3 deletions
-1
View File
@@ -109,7 +109,6 @@ insert schema table row conn = do
query <- populateSql conn ("insert into %I.%I ("++colIds++")", map toSql $ (pack . show $ schema):table:cols)
stmt <- prepare conn (query ++ " values ("++phs++") returning *")
_ <- execute stmt values
commit conn
keys <- getColumnNames stmt
Just vals <- fetchRow stmt
let rowMap = fromList $ zip keys vals