[asterisk-bugs] [JIRA] (ASTERISK-27888) SQL fetch error on query which return 0 columns

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Jun 12 07:53:54 CDT 2018


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

Friendly Automation commented on ASTERISK-27888:
------------------------------------------------

Change 9134 merged by Jenkins2:
func_odbc: NODATA if SQLNumResultCols returned 0 columns on readsql

[https://gerrit.asterisk.org/9134|https://gerrit.asterisk.org/9134]

> SQL fetch error on query which return 0 columns
> -----------------------------------------------
>
>                 Key: ASTERISK-27888
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27888
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_odbc
>    Affects Versions: 13.21.0
>            Reporter: Alexei Gradinari
>            Assignee: Alexei Gradinari
>
> The functions acf_odbc_read/cli_odbc_read ignore a number of columns in the  SQLNumResultCols.
> If the number of columns is zero it means no data.
> In this case, a SQLFetch function has to be not called,
> because it will cause an error.



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



More information about the asterisk-bugs mailing list