Hello community,

here is the log from the commit of package ghc-persistent-sqlite for 
openSUSE:Factory checked in at 2019-07-29 17:26:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-persistent-sqlite (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-persistent-sqlite.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-persistent-sqlite"

Mon Jul 29 17:26:41 2019 rev:15 rq:715417 version:2.10.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-persistent-sqlite/ghc-persistent-sqlite.changes  
    2019-04-28 20:13:25.810419346 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-persistent-sqlite.new.4126/ghc-persistent-sqlite.changes
    2019-07-29 17:26:45.498294061 +0200
@@ -1,0 +2,8 @@
+Tue Jul  2 02:02:08 UTC 2019 - [email protected]
+
+- Update persistent-sqlite to version 2.10.1.
+  ## 2.10.1
+
+  * Add support for reading text values with null characters from the 
database. Fixes [#921](https://github.com/yesodweb/persistent/issues/921)
+
+-------------------------------------------------------------------

Old:
----
  persistent-sqlite-2.10.0.tar.gz
  persistent-sqlite.cabal

New:
----
  persistent-sqlite-2.10.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-persistent-sqlite.spec ++++++
--- /var/tmp/diff_new_pack.JTn2d1/_old  2019-07-29 17:26:50.186292326 +0200
+++ /var/tmp/diff_new_pack.JTn2d1/_new  2019-07-29 17:26:50.190292325 +0200
@@ -19,14 +19,13 @@
 %global pkg_name persistent-sqlite
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        2.10.0
+Version:        2.10.1
 Release:        0
 Summary:        Backend for the persistent library using sqlite3
 License:        MIT
 Group:          Development/Libraries/Haskell
 URL:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-bytestring-devel
@@ -78,7 +77,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %define cabal_configure_options -fsystemlib

++++++ persistent-sqlite-2.10.0.tar.gz -> persistent-sqlite-2.10.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-sqlite-2.10.0/ChangeLog.md 
new/persistent-sqlite-2.10.1/ChangeLog.md
--- old/persistent-sqlite-2.10.0/ChangeLog.md   2019-04-19 02:00:28.000000000 
+0200
+++ new/persistent-sqlite-2.10.1/ChangeLog.md   2019-07-01 11:46:31.000000000 
+0200
@@ -1,5 +1,9 @@
 # Changelog for persistent-sqlite
 
+## 2.10.1
+
+* Add support for reading text values with null characters from the database. 
Fixes [#921](https://github.com/yesodweb/persistent/issues/921)
+
 ## 2.10.0
 
 * Updated for `persistent-2.10.0` compatibility.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-sqlite-2.10.0/Database/Sqlite.hs 
new/persistent-sqlite-2.10.1/Database/Sqlite.hs
--- old/persistent-sqlite-2.10.0/Database/Sqlite.hs     2019-04-15 
04:27:15.000000000 +0200
+++ new/persistent-sqlite-2.10.1/Database/Sqlite.hs     2019-07-01 
11:43:34.000000000 +0200
@@ -521,7 +521,8 @@
 columnText :: Statement -> Int -> IO Text
 columnText (Statement statement) columnIndex = do
   text <- columnTextC statement columnIndex
-  byteString <- BS.packCString text
+  len <- columnBytesC statement columnIndex
+  byteString <- BS.packCStringLen (text, len)
   return $ decodeUtf8With lenientDecode byteString
 
 foreign import ccall "sqlite3_column_count"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/persistent-sqlite-2.10.0/persistent-sqlite.cabal 
new/persistent-sqlite-2.10.1/persistent-sqlite.cabal
--- old/persistent-sqlite-2.10.0/persistent-sqlite.cabal        2019-04-19 
02:00:35.000000000 +0200
+++ new/persistent-sqlite-2.10.1/persistent-sqlite.cabal        2019-07-01 
11:44:57.000000000 +0200
@@ -1,5 +1,5 @@
 name:            persistent-sqlite
-version:         2.10.0
+version:         2.10.1
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <[email protected]>
@@ -38,7 +38,7 @@
 
 library
     build-depends:   base                    >= 4.9         && < 5
-                   , persistent              >= 2.9         && < 3
+                   , persistent              >= 2.10        && < 3
                    , aeson                   >= 1.0
                    , bytestring              >= 0.10
                    , conduit                 >= 1.2.12


Reply via email to