<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6466">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cdr_pgsql: Refactor magic number by definition for version<br><br>Change-Id: I43f25976aa3069793ddbe0086833965a6fb0a518<br>---<br>M cdr/cdr_pgsql.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c<br>index 33cc1b8..b482fe6 100644<br>--- a/cdr/cdr_pgsql.c<br>+++ b/cdr/cdr_pgsql.c<br>@@ -59,6 +59,8 @@<br> <br> #define DATE_FORMAT "'%Y-%m-%d %T'"<br> <br>+#define PGSQL_MIN_VERSION_SCHEMA 70300<br>+<br> static const char name[] = "pgsql";<br> static const char config[] = "cdr_pgsql.conf";<br> <br>@@ -677,7 +679,7 @@<br>                 }<br>             version = PQserverVersion(conn);<br> <br>-          if (version >= 70300) {<br>+           if (version >= PGSQL_MIN_VERSION_SCHEMA) {<br>                         char *schemaname, *tablename, *tmp_schemaname, *tmp_tablename;<br>                        if (strchr(table, '.')) {<br>                             tmp_schemaname = ast_strdupa(table);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6466">change 6466</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/6466"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I43f25976aa3069793ddbe0086833965a6fb0a518 </div>
<div style="display:none"> Gerrit-Change-Number: 6466 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Rodrigo Ramirez Norambuena <a@rodrigoramirez.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>