Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package mysql-connector-cpp for
openSUSE:Factory checked in at 2021-06-07 22:44:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mysql-connector-cpp (Old)
and /work/SRC/openSUSE:Factory/.mysql-connector-cpp.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mysql-connector-cpp"
Mon Jun 7 22:44:03 2021 rev:30 rq:897992 version:8.0.25
Changes:
--------
--- /work/SRC/openSUSE:Factory/mysql-connector-cpp/mysql-connector-cpp.changes
2021-03-30 20:52:00.564157326 +0200
+++
/work/SRC/openSUSE:Factory/.mysql-connector-cpp.new.32437/mysql-connector-cpp.changes
2021-06-07 22:44:31.872589563 +0200
@@ -1,0 +2,12 @@
+Wed Jun 2 21:09:01 UTC 2021 - Mykola Krachkovsky <[email protected]>
+
+- Updated to version 8.0.25
+ * release notes:
+ https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-24.html
+ https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-25.html
+- Fixed use of optional flag not present in mariadb or older mysql
+ * added mysql-connector-cpp-test-feature.patch
+- Updated patch due to code changes
+ * modified mysql-connector-cpp-mariadb.patch
+
+-------------------------------------------------------------------
Old:
----
mysql-connector-c++-8.0.23-src.tar.gz
New:
----
mysql-connector-c++-8.0.25-src.tar.gz
mysql-connector-cpp-test-feature.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mysql-connector-cpp.spec ++++++
--- /var/tmp/diff_new_pack.D9P86a/_old 2021-06-07 22:44:32.420590489 +0200
+++ /var/tmp/diff_new_pack.D9P86a/_new 2021-06-07 22:44:32.424590496 +0200
@@ -19,7 +19,7 @@
%define libname libmysqlcppconn9
%define x_libname libmysqlcppconn8-2
Name: mysql-connector-cpp
-Version: 8.0.23
+Version: 8.0.25
Release: 0
Summary: MySQL Connector/C++: Standardized database driver for C++
development
License: SUSE-GPL-2.0-with-FLOSS-exception
@@ -36,6 +36,8 @@
Patch5: mysql-connector-cpp-dlfcn.patch
# PATCH-FIX-OPENSUSE use system protobuf (due to some build issues in OBS)
Patch6: mysql-connector-cpp-use-system-protobuf.patch
+# PATCH-FIX-OPENSUSE test for optional flag (not present in mariadb or older
mysql)
+Patch7: mysql-connector-cpp-test-feature.patch
BuildRequires: cmake >= 2.6.2
BuildRequires: fdupes
BuildRequires: gcc-c++
++++++ mysql-connector-c++-8.0.23-src.tar.gz ->
mysql-connector-c++-8.0.25-src.tar.gz ++++++
++++ 3219 lines of diff (skipped)
++++++ mysql-connector-cpp-libmysql_dynamic_proxy_typos.patch ++++++
--- /var/tmp/diff_new_pack.D9P86a/_old 2021-06-07 22:44:33.016591496 +0200
+++ /var/tmp/diff_new_pack.D9P86a/_new 2021-06-07 22:44:33.016591496 +0200
@@ -1,5 +1,6 @@
----
mysql-connector-c++-8.0.18-org/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp
2018-05-21 16:06:10.000000000 +0300
-+++
mysql-connector-c++-8.0.18-src/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp
2018-08-09 12:38:45.453558901 +0300
+diff -uNr
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp
+---
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp
2021-03-15 17:21:15.000000000 +0200
++++
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp
2021-05-12 17:00:33.080944723 +0300
@@ -440,7 +440,7 @@
int
LibmysqlDynamicProxy::get_option(MYSQL * mysql, enum mysql_option option,
const void *arg)
@@ -9,4 +10,46 @@
if (ptr2_get_option != NULL) {
if (((*ptr2_get_option)(mysql, option, arg))) {
throw sql::InvalidArgumentException("Unsupported option provided to
mysql_get_option()");
+@@ -512,6 +512,17 @@
+ /* }}} */
+
++/* {{{ LibmysqlDynamicProxy::bind_param() */
++bool
++LibmysqlDynamicProxy::bind_param(MYSQL *mysql, unsigned n_params,
++ st_mysql_bind *binds, const char **names)
++{
++ ptr2mysql_bind_param ptr2_bind_param =
symbol_safe_cast<ptr2mysql_bind_param>(GetProcAddr("mysql_bind_param"));
++ return (*ptr2_bind_param)(mysql, n_params, binds, names);
++}
++/* }}} */
++
++
+ /* {{{ LibmysqlDynamicProxy::real_escape_string() */
+ unsigned long
+ LibmysqlDynamicProxy::real_escape_string(MYSQL * mysql, char * to, const char
* from, unsigned long length)
+diff -uNr
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/libmysql_dynamic_proxy.h
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/libmysql_dynamic_proxy.h
+---
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/libmysql_dynamic_proxy.h
2021-03-15 17:21:15.000000000 +0200
++++
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/libmysql_dynamic_proxy.h
2021-05-12 16:56:10.590130798 +0300
+@@ -142,6 +142,9 @@
+ const char * db,
+ unsigned long client_flag);
+
++ bool bind_param(MYSQL *mysql, unsigned n_params,
++ MYSQL_BIND *binds, const char **names) override;
++
+ unsigned long real_escape_string(MYSQL * mysql, char * to, const char *
from, unsigned long length);
+
+ int real_query(MYSQL *, const char *, unsigned long);
+diff -uNr
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/mysql_client_api.h
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/mysql_client_api.h
+--- mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/mysql_client_api.h
2021-03-15 17:21:15.000000000 +0200
++++ mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/mysql_client_api.h
2021-05-12 17:44:06.645123816 +0300
+@@ -111,6 +111,8 @@
+
+ typedef MYSQL * (STDCALL *ptr2mysql_real_connect_dns_srv)(MYSQL *, const char
*, const char *, const char * , const char *, unsigned long);
+
++typedef bool (STDCALL *ptr2mysql_bind_param)(MYSQL *, unsigned, MYSQL_BIND *,
const char **);
++
+ typedef unsigned long (STDCALL *ptr2mysql_real_escape_string)(MYSQL * mysql,
char *, const char *, unsigned long);
+
+ typedef int (STDCALL *ptr2mysql_real_query)(MYSQL *, const char *, unsigned
long);
++++++ mysql-connector-cpp-mariadb.patch ++++++
--- /var/tmp/diff_new_pack.D9P86a/_old 2021-06-07 22:44:33.032591523 +0200
+++ /var/tmp/diff_new_pack.D9P86a/_new 2021-06-07 22:44:33.036591530 +0200
@@ -194,6 +194,18 @@
struct MYSQL_STMT;
#else
struct st_mysql_stmt;
+diff -uNr
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/native_connection_wrapper.h
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/native_connection_wrapper.h
+---
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/native_connection_wrapper.h
2021-03-15 17:21:15.000000000 +0200
++++
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/native_connection_wrapper.h
2021-05-12 15:54:14.223060673 +0300
+@@ -41,7 +41,7 @@
+
+ #include "../mysql_connection_options.h"
+
+-#if (MYCPPCONN_STATIC_MYSQL_VERSION_ID >= 80004)
++#if (MYCPPCONN_STATIC_MYSQL_VERSION_ID >= 80004 &&
!defined(MYCPPCONN_MARIADB_BUILD))
+ struct MYSQL_BIND;
+ #else
+ struct st_mysql_bind;
diff -uNr
mysql-connector-c++-8.0.15-org/jdbc/driver/nativeapi/native_resultset_wrapper.h
mysql-connector-c++-8.0.15-src/jdbc/driver/nativeapi/native_resultset_wrapper.h
---
mysql-connector-c++-8.0.15-org/jdbc/driver/nativeapi/native_resultset_wrapper.h
2018-10-11 17:09:50.000000000 +0300
+++
mysql-connector-c++-8.0.15-src/jdbc/driver/nativeapi/native_resultset_wrapper.h
2019-02-16 12:26:42.480429868 +0200
++++++ mysql-connector-cpp-test-feature.patch ++++++
---
mysql-connector-c++-8.0.25-src/jdbc/driver/nativeapi/mysql_native_connection_wrapper.cpp
2021-03-15 17:21:15.000000000 +0200
+++
mysql-connector-c++-8.0.25-mod/jdbc/driver/nativeapi/mysql_native_connection_wrapper.cpp
2021-05-12 17:23:50.806629061 +0300
@@ -403,7 +403,11 @@
/* {{{ MySQL_NativeConnectionWrapper::has_query_attributes() */
bool MySQL_NativeConnectionWrapper::has_query_attributes()
{
+#ifdef CLIENT_QUERY_ATTRIBUTES
return mysql->server_capabilities & CLIENT_QUERY_ATTRIBUTES;
+#else
+ return false;
+#endif
}
/* }}} */