added optional trailing zeroes to Day parsing and changed ABORT to ROLLBACK to add support for CockroachDB.
commitb6feac87e2003aa3f0e1ffe36c2ab4927f28664e
authorGeorge Steel <george.steel@gmail.com>
dateWed 31 Jan 2018, 18:04 (9 years ago)
parent664d608
src/Database/PostgreSQL/Simple/Transaction.hs+1−1
@@ -176,7 +176,7 @@ withTransactionModeRetry mode shouldRetry conn act =
176176
177177-- | Rollback a transaction.
178178rollback :: Connection -> IO ()
179−rollback conn = execute_ conn "ABORT" >> return ()
179+rollback conn = execute_ conn "ROLLBACK" >> return ()
180180
181181-- | Rollback a transaction, ignoring any @IOErrors@
182182rollback_ :: Connection -> IO ()