From: Zdeněk Salvet Date: Tue, 28 Aug 2007 10:16:48 +0000 (+0000) Subject: Allow up to 255 chars in indexed columns as needed with owner, host, and X-Git-Tag: glite-lb-client_R_3_0_1_1~20 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3efaa8934ea3c51e246084a2af7fc16e8e871ea5;p=jra1mw.git 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. --- 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";