Commit graph

3 commits

Author SHA1 Message Date
Adriaan de Groot
105f2f3589 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.
2018-06-02 20:22:16 +00:00
Adriaan de Groot
b9647c3370 Fix build of the Qt SQL plugins for MySQL against MariaDB 10.
Recent MySQL code has deprecated the my_bool type, so r469165
added a check for that recent version. MariaDB pretends to be
MySQL, and has an even newer version, which nonetheless hasn't
taken over the drop-my_bool-type change. So my_bool still exists
there. Assume, for now, that MariaDB has my_bool regardless,
to fix incompatibilities reported after PR227813 was closed.

PR:		227813
Reported by:	Jashank Jeremy
2018-06-01 22:16:41 +00:00
Tobias C. Berner
7bcff019f4 databases/qt4-mysql-plugin & databases/qt5-sqldrivers-mysql: fix build against mysql >= 8.0.1.
From the mysql release notes [1]:

  Incompatible Change: The my_bool type is no longer used in MySQL source code.
  Any third-party code that used this type to represent C boolean variables should
  use the bool or int C type instead.

  Note
    The change from my_bool to bool means that the mysql.h header file now requires
    a C++ or C99 compiler to compile.

  (Bug #25597667)

--

[1] https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html

PR:		227813
Reported by:	mikhail.rokhin@gmail.com
2018-05-05 20:05:08 +00:00