b4de30fb01a1168eadfcc65206714f1573eef8c9 max Tue Mar 10 06:31:07 2015 -0700 a mirror that has the failover connection (=hgdownload) enabled currently just crashes in hgTables. Adding an additional check to catch this condition and suppress printing the example values, just like what we do for custom tracks. refs #14945 diff --git src/hg/hgTables/identifiers.c src/hg/hgTables/identifiers.c index e2dd451..160c338 100644 --- src/hg/hgTables/identifiers.c +++ src/hg/hgTables/identifiers.c @@ -109,31 +109,31 @@ if (!sameString(idField, aliasField)) hPrintf(", or the <B>%s</B> field.\n", aliasField); else hPrintf(".\n"); } else hPrintf(", or the <B>%s</B> field of the alias table <B>%s</B>.\n", aliasField, xrefTable); } else hPrintf(".\n"); hPrintf("(The \"describe table schema\" button shows more information about " "the table fields.)\n"); // on a browserbox, db is on the UCSC server, so cannot select into db, even if temporary -if (!isCustomTrack(curTable) && !hIsBrowserbox()) +if (!isCustomTrack(curTable) && !hIsBrowserbox() && sqlCanCreateTemp(conn)) { struct slName *exampleList = NULL, *ex; hPrintf("Some example values:<BR>\n"); exampleList = getExamples(db, conn, curTable, idField, aliasField != NULL ? 3 : 5); for (ex = exampleList; ex != NULL; ex = ex->next) { char *tmp = htmlEncode(ex->name); hPrintf("<TT>%s</TT><BR>\n", tmp); freeMem(tmp); } if (aliasField != NULL) { char tmpTable[512];