cabec1018c6cbcc8ae6a7d65c7dd82758fec024d
braney
  Wed Jul 22 13:24:44 2015 -0700
fix a couple of problems where sql tables were assumed #15756

diff --git src/hg/hgTables/identifiers.c src/hg/hgTables/identifiers.c
index 160c338..c373043 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() && sqlCanCreateTemp(conn))
+if (!isCustomTrack(curTable) && !hIsBrowserbox() && (conn == NULL || 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];