72e59665d76f2f30d6a0f262c1dc729cea56d256 ceisenhart Wed Jan 28 10:50:47 2015 -0800 Fixed a bug that caused split tables to crash in the browser diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c index d29797a..03075e1 100644 --- src/hg/hgTables/schema.c +++ src/hg/hgTables/schema.c @@ -363,38 +363,37 @@ static void showSchemaDb(char *db, struct trackDb *tdb, char *table) /* Show schema to open html page. */ { struct trackDb *tdbForConn = tdb ? tdb : curTrack; struct sqlConnection *conn; if (tdbForConn == NULL) conn = hAllocConn(db); else conn = hAllocConnTrack(db, tdbForConn); struct joiner *joiner = allJoiner; struct joinerPair *jpList, *jp; struct asObject *asObj = asForTable(conn, table); char *splitTable = chromTable(conn, table); - hPrintf("Database: %s", db); hPrintf("    Primary Table: %s", table); if (!sameString(splitTable, table)) hPrintf(" (%s)", splitTable); hPrintf("    Row Count: "); printLongWithCommas(stdout, sqlTableSize(conn, splitTable)); -char *date = firstWordInLine(sqlTableUpdate(conn, table)); +char *date = firstWordInLine(sqlTableUpdate(conn, splitTable)); if (date != NULL) printf("   Data last updated: %s
\n", date); if (asObj != NULL) hPrintf("Format description: %s
", asObj->comment); describeFields(db, splitTable, asObj, conn); if (tdbForConn != NULL) { char *type = tdbForConn->type; if (startsWithWord("bigWig", type)) printf("
This table simply points to a file in " "" "BigWig format.
\n"); } jpList = joinerRelate(joiner, db, table);