mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
FS-6565
This commit is contained in:
@@ -362,14 +362,14 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
|
||||
var = tmp;
|
||||
}
|
||||
|
||||
if (cdr_field->quote) {
|
||||
if ((cdr_field->not_null == SWITCH_FALSE) && zstr(var)) {
|
||||
pq_var = switch_mprintf("null,", var);
|
||||
} else {
|
||||
pq_var = switch_mprintf("'%s',", var);
|
||||
}
|
||||
if ((cdr_field->not_null == SWITCH_FALSE) && zstr(var)) {
|
||||
pq_var = switch_mprintf("null,", var);
|
||||
} else {
|
||||
pq_var = switch_mprintf("%s,", var);
|
||||
if (cdr_field->quote) {
|
||||
pq_var = switch_mprintf("'%s',", var);
|
||||
} else {
|
||||
pq_var = switch_mprintf("%s,", var);
|
||||
}
|
||||
}
|
||||
|
||||
/* Resize values buffer to accomodate next var */
|
||||
|
||||
Reference in New Issue
Block a user