summaryrefslogtreecommitdiffstats
path: root/header.LGPL3-COMM
diff options
context:
space:
mode:
authorDaniel Vrátil <daniel.vratil@kdab.com>2017-09-18 22:33:55 +0200
committerDaniel Vrátil <daniel.vratil@kdab.com>2017-09-21 14:22:13 +0000
commitd25346417238b7dc0fb37359a9b56eff2908a5dc (patch)
tree25911a8aaf56a2c60c82e5feeb8aa17de2c2dd79 /header.LGPL3-COMM
parent64ab7489b3d1ee9cc473d900e08f64d45412e1fc (diff)
Only call mysql_library_end() once when using MariaDB
MariaDB allows only a single call to mysql_library_end(), all subsequent calls to mysql_library_init() or any other API call will fail. Since QMYSQLDriver calls mysql_library_end() function whenever the refcount drops to 0, this breaks applications that close and reopen database connections. This change registers call to mysql_library_init() via qAddPostRoutine() when compiled against MariaDB, so that we only call it once. Task-number: QTBUG-63108 Change-Id: I22c1f0c5b081216f12596a32748dca25cae919e9 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'header.LGPL3-COMM')
0 files changed, 0 insertions, 0 deletions