]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
fixes the boolean case in the mysql plugin to use actual value instead of forcing...
authorlaforge <laforge>
Tue, 18 Mar 2003 10:13:05 +0000 (10:13 +0000)
committerlaforge <laforge>
Tue, 18 Mar 2003 10:13:05 +0000 (10:13 +0000)
mysql/ulogd_MYSQL.c

index 8ea88eb900175e3f4c2d9355e728a9316c0fce38..2e6e95d1744a74fa52749595606dc83001fbdd4f 100644 (file)
@@ -1,4 +1,4 @@
-/* ulogd_MYSQL.c, Version $Revision: 1.7 $
+/* ulogd_MYSQL.c, Version $Revision: 1.8 $
  *
  * 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.7 2002/12/09 14:42:43 laforge Exp $
+ * $Id: ulogd_MYSQL.c,v 1.8 2003/03/05 23:28:49 laforge Exp $
  *
  * 15 May 2001, Alex Janssen <alex@ynfonatic.de>:
  *      Added a compability option for older MySQL-servers, which
@@ -166,7 +166,7 @@ static int _mysql_output(ulog_iret_t *result)
                                sprintf(stmt_ins, "%lu,", res->value.ui64);
                                break;
                        case ULOGD_RET_BOOL:
-                               sprintf(stmt_ins, "1,");
+                               sprintf(stmt_ins, "'%d',", res->value.b);
                                break;
                        case ULOGD_RET_STRING:
                                *stmt_ins++ = '\'';