提交 e1d814b7 authored 作者: Brian West's avatar Brian West

FS-6565

上级 99d0f134
...@@ -362,14 +362,14 @@ static switch_status_t my_on_reporting(switch_core_session_t *session) ...@@ -362,14 +362,14 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
var = tmp; var = tmp;
} }
if (cdr_field->quote) { if ((cdr_field->not_null == SWITCH_FALSE) && zstr(var)) {
if ((cdr_field->not_null == SWITCH_FALSE) && zstr(var)) { pq_var = switch_mprintf("null,", var);
pq_var = switch_mprintf("null,", var); } else {
} else { if (cdr_field->quote) {
pq_var = switch_mprintf("'%s',", var); pq_var = switch_mprintf("'%s',", var);
} else {
pq_var = switch_mprintf("%s,", var);
} }
} else {
pq_var = switch_mprintf("%s,", var);
} }
/* Resize values buffer to accomodate next var */ /* Resize values buffer to accomodate next var */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论