src/hg/hgc/encodeClick.c 1.15

1.15 2010/05/11 01:43:28 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/hgc/encodeClick.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/encodeClick.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -B -U 4 -r1.14 -r1.15
--- src/hg/hgc/encodeClick.c	24 Mar 2010 21:30:50 -0000	1.14
+++ src/hg/hgc/encodeClick.c	11 May 2010 01:43:28 -0000	1.15
@@ -16,9 +16,9 @@
 struct sqlResult *sr;
 enum encodePeakType peakType;
 char **row;
 char *db;
-char *table = tdb->tableName;
+char *table = tdb->table;
 char *chrom = cartString(cart,"c");
 int start = cgiInt("o");
 int end = cgiInt("t");
 int rowOffset;
@@ -32,9 +32,9 @@
     db = database;
 conn = hAllocConn(db);
 peakType = encodePeakInferTypeFromTable(db, table, tdb->type);
 if (peakType == 0)
-    errAbort("unrecognized peak type from table %s", tdb->tableName);
+    errAbort("unrecognized peak type from table %s", tdb->table);
 genericHeader(tdb, NULL);
 sr = hOrderedRangeQuery(conn, table, chrom, start, end,
 			NULL, &rowOffset);
 while((row = sqlNextRow(sr)) != NULL)