<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15928">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr.sql: move comment<br><br>Move a comment for ind_bitlen column to a separate line, so that it doesn't<br>show in PRAGMA_TABLE_INFO('subscriber').<br><br>An upcoming patch introduces db_upgrade_test, which dumps a sorted db schema.<br>In newer sqlite3 versions, a comment following a 'DEFAULT' keyword actually<br>shows up in the PRAGMA_TABLE_INFO() results (on my machine), but older versions<br>(on the build slaves) drop that comment. The ind_bitlen column is the only one<br>producing this odd side effect, because it is the last column and has no comma<br>between 'DEFAULT' and the comment.<br><br>The easiest way to get matching results across sqlite3 client versions is to<br>move the comment to above ind_bitlen instead of having it on the same line.<br>(Adding a comma doesn't work.)<br><br>Change-Id: Id66ad68dd3f22d533fc3a428223ea6ad0282bde0<br>---<br>M sql/hlr.sql<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/28/15928/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/sql/hlr.sql b/sql/hlr.sql</span><br><span>index 10838f2..c1b0f1a 100644</span><br><span>--- a/sql/hlr.sql</span><br><span>+++ b/sql/hlr.sql</span><br><span>@@ -69,7 +69,8 @@</span><br><span>     op              VARCHAR(32),            -- hex string: operator's secret key (128bit)</span><br><span>    opc             VARCHAR(32),            -- hex string: derived from OP and K (128bit)</span><br><span>        sqn             INTEGER NOT NULL DEFAULT 0,     -- sequence number of key usage</span><br><span style="color: hsl(0, 100%, 40%);">- ind_bitlen      INTEGER NOT NULL DEFAULT 5      -- nr of index bits at lower SQN end</span><br><span style="color: hsl(120, 100%, 40%);">+  -- nr of index bits at lower SQN end</span><br><span style="color: hsl(120, 100%, 40%);">+  ind_bitlen      INTEGER NOT NULL DEFAULT 5</span><br><span> );</span><br><span> </span><br><span> CREATE UNIQUE INDEX idx_subscr_imsi ON subscriber (imsi);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hlr/+/15928">change 15928</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-hlr/+/15928"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id66ad68dd3f22d533fc3a428223ea6ad0282bde0 </div>
<div style="display:none"> Gerrit-Change-Number: 15928 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>