packages feed

persistent-postgresql 0.2.0 → 0.2.1

raw patch · 2 files changed

+8/−6 lines, 2 filesdep ~persistentPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: persistent

API changes (from Hackage documentation)

Files

Database/Persist/Postgresql.hs view
@@ -258,12 +258,13 @@             PersistNull -> Right Nothing             PersistByteString a -> Right $ Just $ BSU.toString a             _ -> Left $ "Invalid default column: " ++ show d-    getType "int4" = Right $ SqlInteger+    getType "int4" = Right $ SqlInt32+    getType "int8" = Right $ SqlInteger     getType "varchar" = Right $ SqlString     getType "date" = Right $ SqlDay     getType "bool" = Right $ SqlBool     getType "timestamp" = Right $ SqlDayTime-    getType "float4" = Right $ SqlReal+    getType "float8" = Right $ SqlReal     getType "bytea" = Right $ SqlBlob     getType a = Left $ "Unknown type: " ++ a getColumn _ _ x =@@ -317,8 +318,9 @@  showSqlType :: SqlType -> String showSqlType SqlString = "VARCHAR"-showSqlType SqlInteger = "INTEGER"-showSqlType SqlReal = "REAL"+showSqlType SqlInt32 = "INT4"+showSqlType SqlInteger = "INT8"+showSqlType SqlReal = "DOUBLE PRECISION" showSqlType SqlDay = "DATE" showSqlType SqlTime = "TIME" showSqlType SqlDayTime = "TIMESTAMP"
persistent-postgresql.cabal view
@@ -1,5 +1,5 @@ name:            persistent-postgresql-version:         0.2.0+version:         0.2.1 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -19,7 +19,7 @@                      transformers >= 0.2.1 && < 0.3,                      MonadCatchIO-transformers >= 0.2.2 && < 0.3,                      HDBC-postgresql >= 2.2.3.1 && < 2.3,-                     persistent >= 0.2.0 && < 0.3,+                     persistent >= 0.2.1 && < 0.3,                      containers >= 0.2 && < 0.4,                      bytestring >= 0.9 && < 0.10,                      utf8-string >= 0.3.6 && < 0.4