<p>Then I think it is better to use directly:</p>

<pre><code>select * from tablename
</code></pre>

<p>instead current implementation, instead of just giving the table name. It is easy the check it starts with 'select * ' and then extract the table name as last token.</p>

<p>Also, the documentation of db_text will need to be extended with a new section about 'Raw Query' where to present what is implemented.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/136#issuecomment-95278991">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZezmbDkjwnbdn052HZCwR8KH9iqKks5oB9O5gaJpZM4EGOuy.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/kamailio/kamailio/pull/136#issuecomment-95278991"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>