updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / qt3-trinity / mysql.patch
blob5f61edc672bc98565f6d3149a5a88b8b13250d83
1 --- src/sql/drivers/mysql/qsql_mysql.cpp
2 +++ src/sql/drivers/mysql/qsql_mysql.cpp
3 @@ -37,7 +37,6 @@
4 #include "qsql_mysql.h"
5 #include <private/qsqlextension_p.h>
7 -#include <qapplication.h>
8 #include <qdatetime.h>
9 #include <qvaluevector.h>
10 #include <qsqlrecord.h>
11 @@ -341,14 +340,6 @@ int QMYSQLResult::numRowsAffected()
14 /////////////////////////////////////////////////////////
15 -static void qServerEnd()
17 -#ifndef Q_NO_MYSQL_EMBEDDED
18 -# if MYSQL_VERSION_ID >= 40000
19 - mysql_server_end();
20 -# endif // MYSQL_VERSION_ID
21 -#endif // Q_NO_MYSQL_EMBEDDED
24 static void qServerInit()
26 @@ -366,9 +357,7 @@ static void qServerInit()
27 qWarning( "QMYSQLDriver::qServerInit: unable to start server." );
28 # endif
30 - qAddPostRoutine(qServerEnd);
31 init = TRUE;
33 # endif // MYSQL_VERSION_ID
34 #endif // Q_NO_MYSQL_EMBEDDED
36 @@ -411,6 +400,11 @@ QMYSQLDriver::~QMYSQLDriver()
37 QSqlOpenExtension *ext = qSqlOpenExtDict()->take( this );
38 delete ext;
40 +#ifndef Q_NO_MYSQL_EMBEDDED
41 +# if MYSQL_VERSION_ID > 40000
42 + mysql_server_end();
43 +# endif
44 +#endif
47 bool QMYSQLDriver::hasFeature( DriverFeature f ) const