src/hg/hgTables/schema.c 1.56
1.56 2009/04/01 18:39:11 angie
Must not pass null tdb to hAllocConnTrack, so if selected table does not have its own tdb, use current track's tdb.
Index: src/hg/hgTables/schema.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/schema.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -b -B -U 4 -r1.55 -r1.56
--- src/hg/hgTables/schema.c 17 Mar 2009 18:01:51 -0000 1.55
+++ src/hg/hgTables/schema.c 1 Apr 2009 18:39:11 -0000 1.56
@@ -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);
+struct sqlConnection *conn = hAllocConnTrack(database, tdb ? tdb : curTrack);
struct joiner *joiner = allJoiner;
struct joinerPair *jpList, *jp;
struct asObject *asObj = asForTable(conn, table);
char *splitTable = chromTable(conn, table);