<p></p>

<h3>Description</h3>

<h3>Troubleshooting</h3>
<pre><code># kamailio.cfg
sql = "select * from subscriber";
sql_xquery("ca", sql, "ra");
xinfo("returncode = $rc"); /* 1 */

# kamailio.lua
sql = "select * from subscriber"
rc = KSR.sqlops.sql_xquery("ca", sql, "ra")
KSR.info("returncode = " .. rc .. "\n")  --  0, but 1 expected
</code></pre>
<h4>Reproduction</h4>

<h4>Debugging Data</h4>

<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>

<pre><code>(paste your log messages here)
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>kamailio 5.5.1
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>debian10
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2856">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZM3YLBB622BCF3AY5LUCHD5LANCNFSM5EEO6YMA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZOMPKCZKFDHRJRUWFDUCHD5LA5CNFSM5EEO6YMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4O35JXMQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2856",
"url": "https://github.com/kamailio/kamailio/issues/2856",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>