Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1494865
 поиск   регистрация   авторизация 
 
Группа :: Система/Библиотеки
Пакет: qt4

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: qt-4.1.3-alt-compile-with-old-mysql.patch


--- qt-x11-opensource-src-4.1.3/src/sql/drivers/mysql/qsql_mysql.cpp~	2006-05-14 14:47:12 +0400
+++ qt-x11-opensource-src-4.1.3/src/sql/drivers/mysql/qsql_mysql.cpp	2006-06-13 20:02:17 +0400
@@ -962,7 +962,11 @@ bool QMYSQLDriver::open(const QString& d
        we have to enable CLIEN_MULTI_STATEMENTS here, otherwise _any_
        stored procedure call will fail.
     */
+#if MYSQL_VERSION_ID >= 40100
     unsigned int optionFlags = CLIENT_MULTI_STATEMENTS;
+#else
+    unsigned int optionFlags = 0;
+#endif
     const QStringList opts(connOpts.split(QLatin1Char(';'), QString::SkipEmptyParts));
 
     // extract the real options from the string
 
design & coding: Vladimir Lettiev aka crux © 2004-2005