public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/soci] update-to-4.1.4: add sqlite-params-default-init-fix.patch
@ 2026-06-20  4:39 Alex Kashchenko
  0 siblings, 0 replies; only message in thread
From: Alex Kashchenko @ 2026-06-20  4:39 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/soci
Branch : update-to-4.1.4
Commit : 403d6589f17274c77dfc236aa109bac3862ffddb
Author : Alex Kashchenko <akashche@redhat.com>
Date   : 2018-09-06T11:40:25+00:00
Stats  : +18/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/soci/c/403d6589f17274c77dfc236aa109bac3862ffddb?branch=update-to-4.1.4

Log:
add sqlite-params-default-init-fix.patch

---
diff --git a/soci.spec b/soci.spec
index c24e1d5..b9cdde4 100644
--- a/soci.spec
+++ b/soci.spec
@@ -31,6 +31,8 @@ License:        Boost
 URL:            http://%{name}.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch0:         soci-001-fix-auto_ptr-c++11.patch
+Patch1:         sqlite-params-default-init-fix.patch
+
 
 BuildRequires:  gcc-c++
 BuildRequires:  cmake
@@ -195,6 +197,7 @@ library. The documentation is the same as at the %{name} web page.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # Rename change-log and license file, so that they comply with
 # packaging standard

diff --git a/sqlite-params-default-init-fix.patch b/sqlite-params-default-init-fix.patch
new file mode 100644
index 0000000..c48a868
--- /dev/null
+++ b/sqlite-params-default-init-fix.patch
@@ -0,0 +1,15 @@
+diff --git a/backends/sqlite3/standard-use-type.cpp b/backends/sqlite3/standard-use-type.cpp
+index 43ed4f0..123c075 100644
+--- a/backends/sqlite3/standard-use-type.cpp
++++ b/backends/sqlite3/standard-use-type.cpp
+@@ -74,7 +74,9 @@ void sqlite3_standard_use_type_backend::pre_use(indicator const * ind)
+ 
+     if (statement_.useData_[0].size() < static_cast<std::size_t>(position_))
+     {
+-        statement_.useData_[0].resize(position_);
++        sqlite3_column empty;
++        empty.isNull_ = true;
++        statement_.useData_[0].resize(position_, empty);
+     }
+ 
+     if (ind != NULL && *ind == i_null)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-20  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20  4:39 [rpms/soci] update-to-4.1.4: add sqlite-params-default-init-fix.patch Alex Kashchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox