Merge "cdr/cdr_adaptive_odbc.c: Fix quoted identifier usage when inserting CDR records"

This commit is contained in:
Matt Jordan 2015-07-20 18:09:03 -05:00 committed by Gerrit Code Review
commit d482361a40

View file

@ -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