8165601dddc27978eb4a2fe2654ba81212e30473
braney
  Sat May 31 11:46:07 2025 -0700
hgGene changes for quickLift

diff --git src/hg/hgGene/pathways.c src/hg/hgGene/pathways.c
index edd7da8f3c4..e20711c177d 100644
--- src/hg/hgGene/pathways.c
+++ src/hg/hgGene/pathways.c
@@ -167,31 +167,31 @@
     {
     sqlSafef(condStr, sizeof(condStr), "kgID='%s'", geneId);
     spID = sqlGetField(sqlGetDatabase(conn), "kgXref", "spID", condStr);
     }
 
 if (spID != NULL)
     {
     /* convert splice variant UniProt ID to its main root ID */
     chp = strstr(spID, "-");
     if (chp != NULL) *chp = '\0';
     
     hPrintf(
     "<BR>Protein %s (<A href=\"https://reactome.org/content/query?q=%s\" TARGET=_blank>Reactome details)</A> participates in the following event(s):<BR><BR>" 
     , spID, spID);
 
-    conn2= hAllocConn(database);
+    conn2= hAllocConn(sqlGetDatabase(conn));
     sqlSafef(query2,sizeof(query2), 
     	  "select eventID, eventDesc from proteome.spReactomeEvent where spID='%s'", spID);
     sr2 = sqlMustGetResult(conn2, query2);
     row2 = sqlNextRow(sr2);
     while (row2 != NULL)
     	{
     	eventID   = row2[0];
     	eventDesc = row2[1];
 	hPrintf(
 	"<A href=\"http://www.reactome.org/content/detail/%s\" TARGET=_blank>%s</A> %s<BR>\n",
 	eventID, eventID, eventDesc);
     	row2 = sqlNextRow(sr2);
     	}
     sqlFreeResult(&sr2);
     hFreeConn(&conn2);