diff options
author | adridg <adridg@FreeBSD.org> | 2018-06-03 04:22:16 +0800 |
---|---|---|
committer | adridg <adridg@FreeBSD.org> | 2018-06-03 04:22:16 +0800 |
commit | 7a3f43572a106f12739a36cc221698a97115e835 (patch) | |
tree | c35b27ed478dc0ac626d06c68e8cbe972a4a7734 /databases/qt5-sqldrivers-mysql | |
parent | 2e2d7ad9b4eaa09f18534b310a6f91e96b6ee8de (diff) | |
download | freebsd-ports-gnome-7a3f43572a106f12739a36cc221698a97115e835.tar.gz freebsd-ports-gnome-7a3f43572a106f12739a36cc221698a97115e835.tar.zst freebsd-ports-gnome-7a3f43572a106f12739a36cc221698a97115e835.zip |
Comment on patch for databases/qt5-sqldrivers-mysql
Add a note to the patch for MariaDB-compatibility on how to do it
without ifdefs, which therefore would track changes in MariaDB
definitions (if it follows the MySQL change) automatically.
Diffstat (limited to 'databases/qt5-sqldrivers-mysql')
-rw-r--r-- | databases/qt5-sqldrivers-mysql/files/patch-src_plugins_sqldrivers_mysql_qsql__mysql.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/databases/qt5-sqldrivers-mysql/files/patch-src_plugins_sqldrivers_mysql_qsql__mysql.cpp b/databases/qt5-sqldrivers-mysql/files/patch-src_plugins_sqldrivers_mysql_qsql__mysql.cpp index 534d989c4ff4..4add3e998f28 100644 --- a/databases/qt5-sqldrivers-mysql/files/patch-src_plugins_sqldrivers_mysql_qsql__mysql.cpp +++ b/databases/qt5-sqldrivers-mysql/files/patch-src_plugins_sqldrivers_mysql_qsql__mysql.cpp @@ -10,6 +10,13 @@ now requires a C++ or C99 compiler to compile. (Bug #25597667) +For Qt5, which requires C++11, the following line single-line +definition for mysql_bool is less-fragile and more C++y: + using mysql_bool = decltype(MYSQL_BIND::is_null_value); +This does not apply to the Qt4 port, which allows older compilers +and the less-fragile approach would therefore break on old-gcc-in-base +architectures. + --- src/plugins/sqldrivers/mysql/qsql_mysql.cpp.orig 2018-04-29 07:25:09 UTC +++ src/plugins/sqldrivers/mysql/qsql_mysql.cpp @@ -74,6 +74,14 @@ Q_DECLARE_METATYPE(MYSQL_STMT*) |