[PATCH] osmo-hlr[master]: sql: limit VARCHAR size of key columns to 32

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Feb 1 03:45:13 UTC 2017


Review at  https://gerrit.osmocom.org/1716

sql: limit VARCHAR size of key columns to 32

Change-Id: I2b0f9369318085c1482c6d2d8db56699466bfbf3
---
M sql/hlr.sql
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/16/1716/1

diff --git a/sql/hlr.sql b/sql/hlr.sql
index ab9d173..e05587b 100644
--- a/sql/hlr.sql
+++ b/sql/hlr.sql
@@ -54,15 +54,15 @@
 CREATE TABLE auc_2g (
 	subscriber_id	INTEGER PRIMARY KEY,	-- subscriber.id
 	algo_id_2g	INTEGER NOT NULL,
-	ki		VARCHAR NOT NULL
+	ki		VARCHAR(32) NOT NULL
 );
 
 CREATE TABLE auc_3g (
 	subscriber_id	INTEGER PRIMARY KEY,	-- subscriber.id
 	algo_id_3g	INTEGER NOT NULL,
 	k		VARCHAR(32) NOT NULL,
-	op		VARCHAR,
-	opc		VARCHAR,
+	op		VARCHAR(32),
+	opc		VARCHAR(32),
 	sqn		INTEGER
 );
 

-- 
To view, visit https://gerrit.osmocom.org/1716
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b0f9369318085c1482c6d2d8db56699466bfbf3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>


More information about the gerrit-log mailing list