<p>Nic Colledge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9010">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_voicemail: Fix data-type mismatch between app_voicemail and database<br><br>Fix data-type mismatch between app_voicemail and database columns<br>exposed by new version of MariaDB<br><br>ASTERISK-27760<br><br>Change-Id: I8543ad480a08c98be78bde1ee870e6e6c84b2c5b<br>---<br>M apps/app_voicemail.c<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/10/9010/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c<br>index 8d22cec..b194203 100644<br>--- a/apps/app_voicemail.c<br>+++ b/apps/app_voicemail.c<br>@@ -4410,6 +4410,14 @@<br>             else<br>                  snprintf(sql, sizeof(sql), "INSERT INTO %s (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration,mailboxuser,mailboxcontext,flag,msg_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)", odbc_table);<br> <br>+                if (ast_strlen_zero(idata.origtime)) {<br>+                       idata.origtime = "0";<br>+              }<br>+<br>+         if (ast_strlen_zero(idata.duration)) {<br>+                       idata.duration = "0";<br>+              }<br>+<br>          if ((stmt = ast_odbc_direct_execute(obj, insert_data_cb, &idata))) {<br>                      SQLFreeHandle(SQL_HANDLE_STMT, stmt);<br>                 } else {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9010">change 9010</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9010"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I8543ad480a08c98be78bde1ee870e6e6c84b2c5b </div>
<div style="display:none"> Gerrit-Change-Number: 9010 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nic Colledge <nic@njcolledge.net> </div>