src/hg/hgTracks/encode.c 1.24
1.24 2010/05/11 01:43:27 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgTracks/encode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/encode.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -b -B -U 4 -r1.23 -r1.24
--- src/hg/hgTracks/encode.c 21 Dec 2009 22:43:33 -0000 1.23
+++ src/hg/hgTracks/encode.c 11 May 2010 01:43:27 -0000 1.24
@@ -190,14 +190,14 @@
}
else
{
db = database;
- table = tg->tdb->tableName;
+ table = tg->tdb->table;
}
conn = hAllocConn(db);
pt = encodePeakInferTypeFromTable(db, table, tg->tdb->type);
tg->customInt = pt;
-filterConstraints = encodePeakFilter(tg->tdb->tableName, tg->tdb, (ct!=NULL));
+filterConstraints = encodePeakFilter(tg->tdb->track, tg->tdb, (ct!=NULL));
sr = hRangeQuery(conn, table, chromName, winStart, winEnd, filterConstraints, &rowOffset);
while ((row = sqlNextRow(sr)) != NULL)
{
struct encodePeak *peak = encodePeakGeneralLoad(row + rowOffset, pt);