Merge "cdr/cdr_adaptive_odbc.c: Fix quoted identifier usage when inserting CDR records"
This commit is contained in:
commit
d482361a40
1 changed files with 2 additions and 2 deletions
|
@ -740,9 +740,9 @@ static int odbc_log(struct ast_cdr *cdr)
|
|||
continue;
|
||||
}
|
||||
if (quoted) {
|
||||
ast_str_append(&sql, 0, "%s%s", separator, entry->name);
|
||||
} else {
|
||||
ast_str_append(&sql, 0, "%s%c%s%c", separator, tableptr->quoted_identifiers, entry->name, tableptr->quoted_identifiers);
|
||||
} else {
|
||||
ast_str_append(&sql, 0, "%s%s", separator, entry->name);
|
||||
}
|
||||
separator = ", ";
|
||||
} else if (entry->filtervalue
|
||||
|
|
Loading…
Reference in a new issue