1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/udmsearch/files/patch-sql.c
Foxfair Hu e3885fc9a3 PR: 57927
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
Unbreak www/udmsearch.
2003-10-30 14:37:30 +00:00

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);
}