From 1a300792d1dedf5e402f5b58a35d807fbeea622b Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 29 Sep 2003 11:02:40 +0000 Subject: add error message in case somebody tries to use 'raw' type with mysql output plugin. This is to be replaced with support for BLOB, as soon as somebody writes ist ;) --- ulogd/mysql/ulogd_MYSQL.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ulogd') diff --git a/ulogd/mysql/ulogd_MYSQL.c b/ulogd/mysql/ulogd_MYSQL.c index 118fe81..1e6da79 100644 --- a/ulogd/mysql/ulogd_MYSQL.c +++ b/ulogd/mysql/ulogd_MYSQL.c @@ -1,4 +1,4 @@ -/* ulogd_MYSQL.c, Version $Revision: 1.13 $ +/* ulogd_MYSQL.c, Version $Revision: 1.14 $ * * 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.13 2003/08/23 17:37:53 laforge Exp $ + * $Id: ulogd_MYSQL.c,v 1.14 2003/09/28 15:19:26 laforge Exp $ * * 15 May 2001, Alex Janssen : * Added a compability option for older MySQL-servers, which @@ -167,6 +167,11 @@ static int _mysql_output(ulog_iret_t *result) sprintf(stmt_ins, "',"); /* sprintf(stmt_ins, "'%s',", res->value.ptr); */ break; + case ULOGD_RET_RAW: + ulogd_log(ULOGD_NOTICE, + "%s: type RAW not supported by MySQL\n", + res->key); + break; default: ulogd_log(ULOGD_NOTICE, "unknown type %d for %s\n", -- cgit v1.2.3