<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 3:29 AM, Deepak Rawat <span dir="ltr"><<a href="mailto:deepaksingh.rawat@gmail.com" target="_blank">deepaksingh.rawat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I modified the query in res/res_config_odbc.c.<br>Original: "SELECT MAX(LENGTH(var_val)) FROM %s WHERE filename='%s'"<br>
</div>Modified: "SELECT MAX(LEN(var_val)) FROM %s WHERE filename='%s'"<br>
<br></div>I rebuilt the code and installed Asterisk again. Now static realtime is working. Should I file a bug report?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Aug 11, 2014 at 2:37 AM, Deepak Rawat <span dir="ltr"><<a href="mailto:deepaksingh.rawat@gmail.com" target="_blank">deepaksingh.rawat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div><br>I am using Asterisk 12.4 static realtime. I am storing agents.conf related data in MS SQL Server 2012 database. But I keep getting <b>'LENGTH' is not a recognized built-in function name</b> error message. I debugged and found that it's due to the changes done in this ticket: <a href="https://issues.asterisk.org/jira/browse/ASTERISK-23582" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-23582</a>. As there is no LENGTH function in MS SQL Server, therefore, I am getting this error. Is this error due to some config issue at my end?<br>
<br></div><div>Thank you,<br></div><div>Deepak<br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>