<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13144">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cdr_mysql:  Fix missing use of 'my_bool' with MySql >= 8.0.1<br><br>MySql 8.0.1 replaced the "my_bool" type with "bool" so an #if<br>was added to use "bool" with MYSQL_VERSION_ID >= 80001.<br><br>ASTERISK-28604<br><br>Change-Id: I66a28d8f0011e33774edee13a6f8efd2302bb920<br>---<br>M addons/cdr_mysql.c<br>1 file changed, 6 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/44/13144/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c</span><br><span>index 7fb0b6e..b613844 100644</span><br><span>--- a/addons/cdr_mysql.c</span><br><span>+++ b/addons/cdr_mysql.c</span><br><span>@@ -180,7 +180,9 @@</span><br><span> {</span><br><span>  struct ast_str *sql1 = ast_str_thread_get(&sql1_buf, 1024), *sql2 = ast_str_thread_get(&sql2_buf, 1024);</span><br><span>     int retries = 5;</span><br><span style="color: hsl(0, 100%, 40%);">-#if MYSQL_VERSION_ID >= 50013</span><br><span style="color: hsl(120, 100%, 40%);">+#if MYSQL_VERSION_ID >= 80001</span><br><span style="color: hsl(120, 100%, 40%);">+    bool my_bool_true = 1;</span><br><span style="color: hsl(120, 100%, 40%);">+#elif MYSQL_VERSION_ID >= 50013</span><br><span>   my_bool my_bool_true = 1;</span><br><span> #endif</span><br><span> </span><br><span>@@ -478,7 +480,9 @@</span><br><span>        MYSQL_ROW row;</span><br><span>       MYSQL_RES *result;</span><br><span>   char sqldesc[128];</span><br><span style="color: hsl(0, 100%, 40%);">-#if MYSQL_VERSION_ID >= 50013</span><br><span style="color: hsl(120, 100%, 40%);">+#if MYSQL_VERSION_ID >= 80001</span><br><span style="color: hsl(120, 100%, 40%);">+  bool my_bool_true = 1;</span><br><span style="color: hsl(120, 100%, 40%);">+#elif MYSQL_VERSION_ID >= 50013</span><br><span>   my_bool my_bool_true = 1;</span><br><span> #endif</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13144">change 13144</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/13144"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I66a28d8f0011e33774edee13a6f8efd2302bb920 </div>
<div style="display:none"> Gerrit-Change-Number: 13144 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>