mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
FS-6565
This commit is contained in:
parent
99d0f134e7
commit
e1d814b7e7
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user