Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 34913 Details for
Bug 56328
net-libs/libwww fails to compile when using mysql-4.1.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for libwww-5.4.0 that fixes the problem
libwww-5.4.0-mysql4.1.diff (text/plain), 1.18 KB, created by
Simon Detheridge
on 2004-07-07 07:01:58 UTC
(
hide
)
Description:
Patch for libwww-5.4.0 that fixes the problem
Filename:
MIME Type:
Creator:
Simon Detheridge
Created:
2004-07-07 07:01:58 UTC
Size:
1.18 KB
patch
obsolete
>diff --unified --recursive w3c-libwww-5.4.0.old/Library/src/HTSQL.c w3c-libwww-5.4.0/Library/src/HTSQL.c >--- w3c-libwww-5.4.0.old/Library/src/HTSQL.c 1999-02-22 22:10:12.000000000 +0000 >+++ w3c-libwww-5.4.0/Library/src/HTSQL.c 2004-07-07 14:50:55.000000000 +0100 >@@ -182,9 +182,10 @@ > { > if (me && me->host) { > HTTRACE(SQL_TRACE, "SQL connect. Open a link to server `%s\'\n" _ me->host); >- if ((me->psvr = mysql_connect(&(me->server), me->host, >+ if ((me->psvr = mysql_real_connect(&(me->server), me->host, > me->user ? me->user : "", >- me->password ? me->password : "")) == NULL) { >+ me->password ? me->password : "", >+ "",0,0,0)) == NULL) { > HTTRACE(SQL_TRACE, "SQL connect. `%s\' errno %d\n" _ > mysql_error(&me->server) _ mysql_errno(&me->server)); > return NO; >@@ -240,7 +241,9 @@ > > /* If the database couldn't be found then create a new one */ > if (err == 1049) { >- if (mysql_create_db(me->psvr, db) < 0) { >+ char query[1024]; >+ sprintf (query, "CREATE DATABASE %s", db); >+ if (mysql_query(me->psvr, query) < 0) { > HTTRACE(SQL_TRACE, "SQL error... `%s\', errno %d\n" _ > mysql_error(me->psvr) _ err); > return NO;
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 56328
: 34913 |
34921