Allow up to 255 chars in indexed columns as needed with owner, host, and
authorZdeněk Salvet <salvet@ics.muni.cz>
Tue, 28 Aug 2007 10:16:48 +0000 (10:16 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Tue, 28 Aug 2007 10:16:48 +0000 (10:16 +0000)
tag types (location and destination may be still truncated), use
variable-length SQL data type.

org.glite.lb.server/src/bkindex.c

index 16e7da3..153d6b0 100644 (file)
@@ -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";