[asterisk-commits] mnicholson: branch group/newcdr r199218 - /team/group/newcdr/cel/cel_pgsql.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 4 17:49:33 CDT 2009
Author: mnicholson
Date: Thu Jun 4 17:49:30 2009
New Revision: 199218
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199218
Log:
properly quote the eventtime for cel_pgsql
Modified:
team/group/newcdr/cel/cel_pgsql.c
Modified: team/group/newcdr/cel/cel_pgsql.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/cel/cel_pgsql.c?view=diff&rev=199218&r1=199217&r2=199218
==============================================================================
--- team/group/newcdr/cel/cel_pgsql.c (original)
+++ team/group/newcdr/cel/cel_pgsql.c Thu Jun 4 17:49:30 2009
@@ -204,7 +204,7 @@
LENGTHEN_BUF2(31);
ast_localtime(&eventtime, &tm, NULL);
ast_strftime(buf, sizeof(buf), DATE_FORMAT, &tm);
- ast_str_append(&sql2, 0, "%s%s", first ? "" : ",", buf);
+ ast_str_append(&sql2, 0, "%s'%s'", first ? "" : ",", buf);
}
} else if (strcmp(cur->name, "eventtype") == 0) {
if (cur->type[0] == 'i') {
More information about the asterisk-commits
mailing list