src/hg/hgTables/schema.c 1.57
1.57 2009/04/01 23:59:44 angie
In showSchemaDb's call to hAllocConnTrack, use passed-in db instead of database (genome db) in case db is hgFixed etc. Should still be reachable by selected track's profile.
Index: src/hg/hgTables/schema.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/schema.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -b -B -U 4 -r1.56 -r1.57
--- src/hg/hgTables/schema.c 1 Apr 2009 18:39:11 -0000 1.56
+++ src/hg/hgTables/schema.c 1 Apr 2009 23:59:44 -0000 1.57
@@ -334,9 +334,9 @@
static void showSchemaDb(char *db, struct trackDb *tdb, char *table)
/* Show schema to open html page. */
{
-struct sqlConnection *conn = hAllocConnTrack(database, tdb ? tdb : curTrack);
+struct sqlConnection *conn = hAllocConnTrack(db, tdb ? tdb : curTrack);
struct joiner *joiner = allJoiner;
struct joinerPair *jpList, *jp;
struct asObject *asObj = asForTable(conn, table);
char *splitTable = chromTable(conn, table);