91cb3d6315e748060d98863d6ec6789daa185a6f galt Wed Jun 19 13:53:00 2013 -0700 fixing "force index (bin)" with %-s diff --git src/hg/hgTracks/snakeTrack.c src/hg/hgTracks/snakeTrack.c index bb30a2a..4452ff0 100644 --- src/hg/hgTracks/snakeTrack.c +++ src/hg/hgTracks/snakeTrack.c @@ -230,31 +230,31 @@ * linkedFeatures structure */ { struct sqlResult *sr = NULL; char **row; struct linkedFeatures *lf; struct snakeFeature *sf; struct dyString *query = newDyString(1024); char *force = ""; if (isSplit) force = "force index (bin)"; if (chainId == -1) sqlDyStringPrintf(query, - "select chainId,tStart,tEnd,qStart from %sLink %s where ", + "select chainId,tStart,tEnd,qStart from %sLink %-s where ", fullName, force); else sqlDyStringPrintf(query, "select chainId, tStart,tEnd,qStart from %sLink where chainId=%d and ", fullName, chainId); if (!isSplit) sqlDyStringPrintf(query, "tName='%s' and ", chromName); hAddBinToQuery(start, end, query); dyStringPrintf(query, "tStart<%u and tEnd>%u", end, start); sr = sqlGetResult(conn, query->string); /* Loop through making up simple features and adding them * to the corresponding linkedFeature. */ while ((row = sqlNextRow(sr)) != NULL) {