[asterisk-bugs] [JIRA] (ASTERISK-25263) [patch]cdr_adaptive_odbc: CDR insert failure due to reversed if logic

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Jul 20 18:25:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226966#comment-226966 ] 

Matt Jordan commented on ASTERISK-25263:
----------------------------------------

Merged to master - thanks for the patch!

> [patch]cdr_adaptive_odbc: CDR insert failure due to reversed if logic
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-25263
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25263
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CDR/cdr_adaptive_odbc
>    Affects Versions: SVN
>         Environment: Slackware Linux
>            Reporter: Elazar Broad
>            Severity: Critical
>         Attachments: 25263_1.diff
>
>
> The logic in the if statement which determines whether to use quoted statements in cdr_adaptive_odbc.c is reversed, resulting in a reference to tableptr->quoted_identifiers which is null, which terminates the sql buffer resulting in a truncated SQL statement[INSERT INTO table (]. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list