d09ea5e921e4754ed3df9c2bf408a0b626cb59b1 angie Wed Aug 26 13:55:09 2015 -0700 Fixing logical mixup between 'est' and 'all_est' -- symptom was checkTableCoords making a bad sql query, found by Hiram. diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 554254d..c396dc6 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -1956,33 +1956,33 @@ boolean useSqlConstraints = sqlConstraints != NULL && sqlConstraints[0] != 0; char tStrand = '?', qStrand = '?'; int i; boolean gotWhere = FALSE; /* Caller can give us either a full table name or root table name. */ if (browserDb) hParseTableName(browserDb, table, rootName, parsedChrom); else hParseTableName(db, table, rootName, parsedChrom); hti = hFindTableInfo(db, chrom, rootName); if (hti == NULL) errAbort("Could not find table info for table %s (%s)", rootName, table); if (hti->isSplit) - safef(fullTableName, sizeof(fullTableName), "%s_%s", chrom, rootName); + safef(fullTableName, sizeof(fullTableName), "%s_%s", chrom, hti->rootName); else - safef(fullTableName, sizeof(fullTableName), "%s", rootName); + safef(fullTableName, sizeof(fullTableName), "%s", hti->rootName); canDoUTR = hti->hasCDS; canDoIntrons = hti->hasBlocks; dyStringClear(query); // row[0], row[1] -> start, end sqlDyStringPrintf(query, "SELECT %s,%s", hti->startField, hti->endField); // row[2] -> name or placeholder if (hti->nameField[0] != 0) sqlDyStringPrintf(query, ",%s", hti->nameField); else dyStringAppend(query, ",0"); // row[3] -> score or placeholder if (hti->scoreField[0] != 0) sqlDyStringPrintf(query, ",%s", hti->scoreField); else