From 3efaa8934ea3c51e246084a2af7fc16e8e871ea5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Tue, 28 Aug 2007 10:16:48 +0000 Subject: [PATCH] Allow up to 255 chars in indexed columns as needed with owner, host, and tag types (location and destination may be still truncated), use variable-length SQL data type. --- org.glite.lb.server/src/bkindex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/bkindex.c b/org.glite.lb.server/src/bkindex.c index 16e7da3..153d6b0 100644 --- a/org.glite.lb.server/src/bkindex.c +++ b/org.glite.lb.server/src/bkindex.c @@ -280,7 +280,8 @@ static char *db_col_type(const edg_wll_QueryRec *r) case EDG_WLL_QUERY_ATTR_USERTAG: case EDG_WLL_QUERY_ATTR_HOST: case EDG_WLL_QUERY_ATTR_CHKPT_TAG: - return "char(250) binary null"; + /* XXX: 255 may not be enough for location or destination */ + return "varchar(255) binary null"; case EDG_WLL_QUERY_ATTR_TIME: return "datetime null"; -- 1.8.2.3