summaryrefslogtreecommitdiffstats
path: root/arch/calvin/trinity-qt3/old-patches/mysql.patch
diff options
context:
space:
mode:
authormutantturkey <[email protected]>2011-09-09 16:33:33 -0400
committermutantturkey <[email protected]>2011-09-09 16:33:33 -0400
commit1b2e638684ebbf2b777ead2fbbb4b69f3ac00bcb (patch)
treed8f1118c540008015e042caec1dbe52aa93c46c8 /arch/calvin/trinity-qt3/old-patches/mysql.patch
parent688262143652290b8fa3693b592359a0f0b54c55 (diff)
downloadtde-packaging-1b2e638684ebbf2b777ead2fbbb4b69f3ac00bcb.tar.gz
tde-packaging-1b2e638684ebbf2b777ead2fbbb4b69f3ac00bcb.zip
started working on Qt3, made my own folder, when work is done, I will bring it into the main branch
Diffstat (limited to 'arch/calvin/trinity-qt3/old-patches/mysql.patch')
-rw-r--r--arch/calvin/trinity-qt3/old-patches/mysql.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/calvin/trinity-qt3/old-patches/mysql.patch b/arch/calvin/trinity-qt3/old-patches/mysql.patch
new file mode 100644
index 000000000..5f61edc67
--- /dev/null
+++ b/arch/calvin/trinity-qt3/old-patches/mysql.patch
@@ -0,0 +1,47 @@
+--- src/sql/drivers/mysql/qsql_mysql.cpp
++++ src/sql/drivers/mysql/qsql_mysql.cpp
+@@ -37,7 +37,6 @@
+ #include "qsql_mysql.h"
+ #include <private/qsqlextension_p.h>
+
+-#include <qapplication.h>
+ #include <qdatetime.h>
+ #include <qvaluevector.h>
+ #include <qsqlrecord.h>
+@@ -341,14 +340,6 @@ int QMYSQLResult::numRowsAffected()
+ }
+
+ /////////////////////////////////////////////////////////
+-static void qServerEnd()
+-{
+-#ifndef Q_NO_MYSQL_EMBEDDED
+-# if MYSQL_VERSION_ID >= 40000
+- mysql_server_end();
+-# endif // MYSQL_VERSION_ID
+-#endif // Q_NO_MYSQL_EMBEDDED
+-}
+
+ static void qServerInit()
+ {
+@@ -366,9 +357,7 @@ static void qServerInit()
+ qWarning( "QMYSQLDriver::qServerInit: unable to start server." );
+ # endif
+ }
+- qAddPostRoutine(qServerEnd);
+ init = TRUE;
+-
+ # endif // MYSQL_VERSION_ID
+ #endif // Q_NO_MYSQL_EMBEDDED
+ }
+@@ -411,6 +400,11 @@ QMYSQLDriver::~QMYSQLDriver()
+ QSqlOpenExtension *ext = qSqlOpenExtDict()->take( this );
+ delete ext;
+ }
++#ifndef Q_NO_MYSQL_EMBEDDED
++# if MYSQL_VERSION_ID > 40000
++ mysql_server_end();
++# endif
++#endif
+ }
+
+ bool QMYSQLDriver::hasFeature( DriverFeature f ) const