<p>unix ODBC offers the possibilty to do an update or insert in one replace query. Unfortunately, Oracle unixODBC driver doesn't support this feature. Modifications have been done in the db_unixodbc module to allow to replace the query by 2 queries : update and if not exist, insert. This can be controlled by a new parameter replace_query, set to '1' by default in order to be backward compatible.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/606'>https://github.com/kamailio/kamailio/pull/606</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>db_unixodbc: some ODBC drivers do not support ODBC replace query</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/606/files#diff-0">modules/db_unixodbc/connection.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/606/files#diff-1">modules/db_unixodbc/db_unixodbc.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/606/files#diff-2">modules/db_unixodbc/dbase.c</a>
    (50)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/606/files#diff-3">modules/db_unixodbc/dbase.h</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/606/files#diff-4">modules/db_unixodbc/doc/db_unixodbc_admin.xml</a>
    (30)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/606.patch'>https://github.com/kamailio/kamailio/pull/606.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/606.diff'>https://github.com/kamailio/kamailio/pull/606.diff</a></li>
</ul>

<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 or <a href="https://github.com/kamailio/kamailio/pull/606">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZU6fd-gzvME67lIVJ8Rgw5ZN_3t6ks5p_3DFgaJpZM4IaW40.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/606"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>