mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
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.
This commit is contained in:
parent
9fdb98e408
commit
105f2f3589
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471403
@ -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*)
|
||||
|
Loading…
Reference in New Issue
Block a user