packages feed

persistent-mysql-haskell 0.3.4 → 0.3.4.1

raw patch · 3 files changed

+7/−4 lines, 3 files

Files

ChangeLog.md view
@@ -1,3 +1,6 @@+## 0.3.4.1+- Fix a haddock issue down-streamed from [#693](https://github.com/yesodweb/persistent/pull/693).+ ## 0.3.4 - Port [#693](https://github.com/yesodweb/persistent/pull/693) from `mysql-haskell`: Extend the `SomeField` type to allow `insertManyOnDuplicateKeyUpdate` to conditionally copy values. - Port [#702](https://github.com/yesodweb/persistent/pull/702) from `mysql-haskell`: Fix behavior of `insertManyOnDuplicateKeyUpdate` to ignore duplicate key exceptions when no updates specified.
Database/Persist/MySQL.hs view
@@ -1111,11 +1111,11 @@ -- @INSERT ON DUPLICATE KEY UPDATE@ functionality, exposed via -- 'insertManyOnDuplicateKeyUpdate' in the library. data SomeField record where+  -- | Copy the field directly from the record.   SomeField :: EntityField record typ -> SomeField record-  -- ^ Copy the field directly from the record.-  CopyUnlessEq :: PersistField typ => EntityField record typ -> typ -> SomeField record-  -- ^ Only copy the field if it is not equal to the provided value.+  -- | Only copy the field if it is not equal to the provided value.   -- @since 2.6.2+  CopyUnlessEq :: PersistField typ => EntityField record typ -> typ -> SomeField record  -- | Copy the field into the database only if the value in the -- corresponding record is non-@NULL@.
persistent-mysql-haskell.cabal view
@@ -1,5 +1,5 @@ name:            persistent-mysql-haskell-version:         0.3.4+version:         0.3.4.1 license:         MIT license-file:    LICENSE author:          Naushadh <naushadh@protonmail.com>, Felipe Lessa <felipe.lessa@gmail.com>, Michael Snoyman