summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaforge <laforge>2003-09-29 11:02:40 +0000
committerlaforge <laforge>2003-09-29 11:02:40 +0000
commit9b50662939583631b55f7633154bf8ed93e37c10 (patch)
tree1c953f1685af9600600df9a189220f4370b6b591
parenta6fbeb96e8894f6d2c953196c99a59644798ac04 (diff)
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 ;)
-rw-r--r--mysql/ulogd_MYSQL.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mysql/ulogd_MYSQL.c b/mysql/ulogd_MYSQL.c
index 118fe81..1e6da79 100644
--- a/mysql/ulogd_MYSQL.c
+++ b/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 <alex@ynfonatic.de>:
* 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",