4c8fced438efbfe381f270466cf9703632bbfe1e
tdreszer
  Thu Oct 7 12:45:29 2010 -0700
Special case for labs which are case insensitive.  Need case insensitive hashing.
diff --git src/hg/lib/mdb.c src/hg/lib/mdb.c
index 730ccdb..a58dbbd 100644
--- src/hg/lib/mdb.c
+++ src/hg/lib/mdb.c
@@ -2108,6 +2108,13 @@
     AllocVar(pair);
     pair = slPairNew(row[0],cloneString(row[0]));  // defaults the label to the val
     ra = hashFindVal(cvHash,row[0]);
+    if (ra == NULL && sameString(var,"lab"))  // ugly special case
+        {
+        char *val = cloneString(row[0]);
+        ra = hashFindVal(cvHash,strUpper(val));
+        if (ra == NULL)
+            ra = hashFindVal(cvHash,strLower(val));
+        }
     if (ra != NULL)
         {
         char *label = hashFindVal(ra,"label");