src/hg/hgTables/schema.c 1.55
1.55 2009/03/17 18:01:51 fanhsu
Updated to support logicalDb.
Index: src/hg/hgTables/schema.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/schema.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -b -B -U 4 -r1.54 -r1.55
--- src/hg/hgTables/schema.c 16 Mar 2009 05:08:48 -0000 1.54
+++ src/hg/hgTables/schema.c 17 Mar 2009 18:01:51 -0000 1.55
@@ -334,9 +334,9 @@
static void showSchemaDb(char *db, struct trackDb *tdb, char *table)
/* Show schema to open html page. */
{
-struct sqlConnection *conn = sqlConnect(db);
+struct sqlConnection *conn = hAllocConnTrack(database, tdb);
struct joiner *joiner = allJoiner;
struct joinerPair *jpList, *jp;
struct asObject *asObj = asForTable(conn, table);
char *splitTable = chromTable(conn, table);
@@ -403,9 +403,9 @@
}
webNewSection("Sample Rows");
printSampleRows(10, conn, splitTable);
printTrackHtml(tdb);
-sqlDisconnect(&conn);
+hFreeConn(&conn);
}
static void showSchemaCtWiggle(char *table, struct customTrack *ct)
/* Show schema on wiggle format custom track. */