mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
e3885fc9a3
Submitted by: Cheng-Lung Sung <clsung@dragon2.net> Unbreak www/udmsearch.
13 lines
395 B
C
13 lines
395 B
C
--- src/sql.c.orig Tue Sep 19 17:14:21 2000
|
|
+++ src/sql.c Mon Oct 13 09:59:28 2003
|
|
@@ -204,7 +204,8 @@
|
|
#define unlock_url(db) sql_query(db,"UNLOCK TABLES")
|
|
|
|
static int InitDB(DB*db){
|
|
- if (!(mysql_connect(&(db->mysql),DBHost,DBUser,DBPass))){
|
|
+ mysql_init(&(db->mysql));
|
|
+ if (!(mysql_real_connect(&(db->mysql),DBHost,DBUser,DBPass,DB_DEFAULT,0,NULL,0))){
|
|
db->errcode=1;
|
|
return(1);
|
|
}
|