<p><a href="https://github.com/qmphan" class="user-mention">@qmphan</a> , you are right!  The only issue I see with that approach is that we will break many other modules. Most of them do expect to get a DB_STRING after a DB query - and they actually check the DB type. If we change to DB_STR, all these modules will get broken.<br>
What can be done is to : <br>
1) revert the so far changes in dialog module<br>
2) make db_postgres to populate the .len even if the DB_STRING (in db_postgres_str2val).</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/pull/619#issuecomment-135460042">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibES48CHGs2JvRnQ_tZidMBHr9maks5orxyTgaJpZM4Fytcd.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/pull/619#issuecomment-135460042"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>