[asterisk-bugs] [JIRA] (ASTERISK-24568) res_config_odbc fails on MS SQL Server

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Dec 16 17:45:28 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-24568:
------------------------------------

    Assignee: Matt Jordan  (was: Rudolf Faix)
      Status: Triage  (was: Waiting for Feedback)

> res_config_odbc fails on MS SQL Server
> --------------------------------------
>
>                 Key: ASTERISK-24568
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24568
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Resources/res_config_odbc
>    Affects Versions: 11.14.1, 13.0.1
>         Environment: OpenSuse 13.1, FreeTDS, UnixODBC, MS SQL Server
>            Reporter: Rudolf Faix
>            Assignee: Matt Jordan
>            Severity: Minor
>
> res_config_odbc fails on SQL-Server for the following statement:
> ast_build_string(&sql, &sqlleft, "SELECT MAX(LENGTH(var_val)) FROM %s WHERE filename='%s'", table, file);
> If you exchange the word "LENGTH" to "LEN" everything is working fine:
> ast_build_string(&sql, &sqlleft, "SELECT MAX(LEN(var_val)) FROM %s WHERE filename='%s'", table, file);



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



More information about the asterisk-bugs mailing list