<p><a href="https://github.com/OpenSIPS/opensips/commit/779996d9b37ad11f01420961ac708c6daa4d2828" class="commit-link"><tt>779996d</tt></a> the problem was that sqlite3_column_metadata was using the table name from the connection structure, but on raw queries no table name was set. So i parsed the query to search for the keyword 'FROM', case insesitive, then got the table name and set it for the connection.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/625#issuecomment-138935399">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciamQRDsSLs5fCuUg76Innxh5DXOiks5owD6ogaJpZM4F0HYE.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/625#issuecomment-138935399"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>