persistent-postgresql 1.0.0 → 1.0.1
raw patch · 2 files changed
+6/−5 lines, 2 filesdep ~persistent
Dependency ranges changed: persistent
Files
Database/Persist/Postgresql.hs view
@@ -127,15 +127,16 @@ , withStmt = withStmt' conn query } -insertSql' :: DBName -> [DBName] -> Either Text (Text, Text)-insertSql' t cols = Left $ pack $ concat+insertSql' :: DBName -> [DBName] -> DBName -> InsertSqlResult+insertSql' t cols id' = ISRSingle $ pack $ concat [ "INSERT INTO " , T.unpack $ escape t , "(" , intercalate "," $ map (T.unpack . escape) cols , ") VALUES(" , intercalate "," (map (const "?") cols)- , ") RETURNING id"+ , ") RETURNING "+ , T.unpack $ escape id' ] execute' :: PG.Connection -> PG.Query -> [PersistValue] -> IO ()
persistent-postgresql.cabal view
@@ -1,5 +1,5 @@ name: persistent-postgresql-version: 1.0.0+version: 1.0.1 license: MIT license-file: LICENSE author: Felipe Lessa, Michael Snoyman <michael@snoyman.com>@@ -17,7 +17,7 @@ , transformers >= 0.2.1 && < 0.4 , postgresql-simple >= 0.2 && < 0.3 , postgresql-libpq >= 0.6.1 && < 0.9- , persistent >= 1.0 && < 1.1+ , persistent >= 1.0.2 && < 1.1 , containers >= 0.2 , bytestring >= 0.9 , text >= 0.7 && < 0.12