[asterisk-bugs] [JIRA] (ASTERISK-24568) res_config_odbc fails on MS SQL Server
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Tue Dec 2 13:33:29 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Jordan updated ASTERISK-24568:
-----------------------------------
Assignee: Rudolf Faix
Status: Waiting for Feedback (was: Triage)
> 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: Rudolf Faix
> 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