From: laforge Date: Mon, 11 Aug 2003 19:44:07 +0000 (+0000) Subject: use mysql_real_connect for MySQL4 (Joerg Wendland) X-Git-Tag: ulogd-2.0.0beta2~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e16c44bbb01342e1cf2c42e727833c82668dcc94;p=thirdparty%2Fulogd2.git use mysql_real_connect for MySQL4 (Joerg Wendland) --- diff --git a/mysql/ulogd_MYSQL.c b/mysql/ulogd_MYSQL.c index 2e6e95d..7f14cf8 100644 --- a/mysql/ulogd_MYSQL.c +++ b/mysql/ulogd_MYSQL.c @@ -1,4 +1,4 @@ -/* ulogd_MYSQL.c, Version $Revision: 1.8 $ +/* ulogd_MYSQL.c, Version $Revision: 1.9 $ * * ulogd output plugin for logging to a MySQL database * @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: ulogd_MYSQL.c,v 1.8 2003/03/05 23:28:49 laforge Exp $ + * $Id: ulogd_MYSQL.c,v 1.9 2003/03/18 10:13:05 laforge Exp $ * * 15 May 2001, Alex Janssen : * Added a compability option for older MySQL-servers, which @@ -310,7 +310,7 @@ static int _mysql_get_columns(const char *table) /* make connection and select database */ static int _mysql_open_db(char *server, char *user, char *pass, char *db) { - dbh = mysql_connect(NULL, server, user, pass); + dbh = mysql_real_connect(NULL, server, user, pass, NULL, 0, NULL, 0); if (!dbh) return 1;