src/hg/hgTables/schema.c 1.59
1.59 2009/04/10 20:04:29 tdreszer
Fix many instances of using composite tdb when subtrack tdb is needed
Index: src/hg/hgTables/schema.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/schema.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -b -B -U 4 -r1.58 -r1.59
--- src/hg/hgTables/schema.c 3 Apr 2009 19:08:34 -0000 1.58
+++ src/hg/hgTables/schema.c 10 Apr 2009 20:04:29 -0000 1.59
@@ -81,10 +81,10 @@
char query[256];
struct slName *exampleList, *example;
boolean showItemRgb = FALSE;
-showItemRgb=bedItemRgb(curTrack); /* should we expect itemRgb */
- /* instead of "reserved" */
+showItemRgb=bedItemRgb(findTdbForTable(db, curTrack, table));
+// should we expect itemRgb instead of "reserved"
safef(query, sizeof(query), "select * from %s limit 1", table);
exampleList = storeRow(conn, query);
safef(query, sizeof(query), "describe %s", table);
@@ -201,10 +201,10 @@
int i, columnCount = 0;
int itemRgbCol = -1;
boolean showItemRgb = FALSE;
-showItemRgb=bedItemRgb(curTrack); /* should we expect itemRgb */
- /* instead of "reserved" */
+showItemRgb=bedItemRgb(findTdbForTable(database, curTrack, table));
+// should we expect itemRgb instead of "reserved"
/* Make table with header row containing name of fields. */
safef(query, sizeof(query), "describe %s", table);
sr = sqlGetResult(conn, query);