Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63272 Details for
Bug 98368
mysqlnavigator 1.4.2 fails to build.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mysqlnavigator-mysql-4.1.patch
mysqlnavigator-mysql-4.1.patch (text/plain), 1.68 KB, created by
Francesco R. (RETIRED)
on 2005-07-12 13:57:27 UTC
(
hide
)
Description:
mysqlnavigator-mysql-4.1.patch
Filename:
MIME Type:
Creator:
Francesco R. (RETIRED)
Created:
2005-07-12 13:57:27 UTC
Size:
1.68 KB
patch
obsolete
>--- mysqlnavigator-1.4.2.orig/src/mysql/mainwindow/mainwindowslotshutdown.cxx 2005-07-12 21:54:25.000000000 +0200 >+++ mysqlnavigator-1.4.2/src/mysql/mainwindow/mainwindowslotshutdown.cxx 2005-07-12 21:57:19.000000000 +0200 >@@ -8,8 +8,11 @@ > > if(z == 1) > return; >- >+#if MYSQL_VERSION_ID>=40103 >+ if(mysql_shutdown(&mysql, SHUTDOWN_DEFAULT)) >+#else > if(mysql_shutdown(&mysql)) >+#endif > { > QMessageBox::critical(this, tr("MySQL Navigator"), QString::fromLocal8Bit(mysql_error(&mysql))); > } >--- mysqlnavigator-1.4.2.orig/src/mysql/mainwindow/mainwindowslotschema.cxx 2005-07-12 22:33:02.000000000 +0200 >+++ mysqlnavigator-1.4.2/src/mysql/mainwindow/mainwindowslotschema.cxx 2005-07-12 22:47:05.000000000 +0200 >@@ -505,6 +505,8 @@ > > bool z = FALSE; > >+ char query[1024]; >+ > > > QString sql = QInputDialog::getText(tr("MySQL Navigator"), tr("Please enter database name you will create."), QLineEdit::Normal, QString::null, &z, this ); >@@ -515,8 +517,17 @@ > > { > >+#if MYSQL_VERSION_ID>=40103 >+ >+ sprintf (query, "CREATE DATABASE %s", sql.latin1()); >+ >+ if (mysql_query(&mysql, query) != 0) >+#else >+ > if((mysql_create_db(&mysql, sql.latin1()))) > >+#endif >+ > { > > QMessageBox::critical(this, tr("MySQL Navigator"), QString::fromLocal8Bit(mysql_error(&mysql))); >@@ -567,6 +578,8 @@ > > QString sql = database->text(0); > >+ char query[1024]; >+ > > > if(database == NULL) >@@ -605,8 +618,18 @@ > > > >+#if MYSQL_VERSION_ID>=40103 >+ >+ sprintf (query, "DROP DATABASE %s", sql.latin1()); >+ >+ if (mysql_query(&mysql, query) != 0) >+ >+#else >+ > if((mysql_drop_db(&mysql, sql.latin1()))) > >+#endif >+ > { > > QMessageBox::critical(this, tr("MySQL Navigator"), QString::fromLocal8Bit(mysql_error(&mysql)));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 98368
: 63272