5b8c4168d4807c729fc8b1f199d9eb03c9411069
galt
  Thu Mar 3 18:40:54 2016 -0800
Replacing simple literal NOSQLINJ in string with the #define NOSQLINJ. This is slightly better because the compiler can catch a mis-spelling of the NOSQLINJ keyword. This was suggested by Angie.

diff --git src/hg/hgGenome/hgGenome.c src/hg/hgGenome/hgGenome.c
index aa5a75e..9eaf815 100644
--- src/hg/hgGenome/hgGenome.c
+++ src/hg/hgGenome/hgGenome.c
@@ -85,31 +85,31 @@
 	}
     }
 slReverse(&list);
 return list;
 }
 
 struct genoGraph *getCompGraphs(struct sqlConnection *conn)
 /* Get graphs defined in database that are part of a composite. */
 {
 struct genoGraph *list = NULL, *gg;
 struct sqlConnection *conn2 = hAllocConn(database);
 struct slName *compositeGGList = NULL, *comp;
 
 /* Get initial information from metaChromGraph table */
 if (sqlTableExists(conn, "metaChromGraph"))
-    compositeGGList = sqlQuickList(conn, "NOSQLINJ select name from metaChromGraph where binaryFile='composite'");
+    compositeGGList = sqlQuickList(conn, NOSQLINJ "select name from metaChromGraph where binaryFile='composite'");
 
 /* Build a hash of genoGraphs out of composite trackDbs and fill in from cart. */
 for (comp = compositeGGList; comp != NULL; comp = comp->next)
     {
     struct trackDb *tdb = hTrackDbForTrack(database, comp->name);
     if (tdb)
 	{
 	struct chromGraphSettings *cgs = chromGraphSettingsGet(comp->name, conn2, tdb, cart);
 	AllocVar(gg);
 	gg->name = cloneString(comp->name);
 	gg->shortLabel = tdb->shortLabel;
 	gg->longLabel = tdb->longLabel;
 	gg->settings = cgs;
 	gg->isSubGraph = FALSE;
 	gg->isComposite = TRUE;
@@ -122,31 +122,31 @@
 return list;
 }
 
 struct genoGraph *getDbGraphs(struct sqlConnection *conn)
 /* Get graphs defined in database. Also use the composite settings if */
 /* it's a subGraph. */
 {
 struct genoGraph *list = NULL, *gg;
 struct sqlConnection *conn2 = hAllocConn(database);
 struct sqlResult *sr;
 char **row;
 
 /* Get initial information from metaChromGraph table */
 if (sqlTableExists(conn, "metaChromGraph"))
     {
-    sr = sqlGetResult(conn, "NOSQLINJ select name,binaryFile from metaChromGraph where binaryFile!='composite'");
+    sr = sqlGetResult(conn, NOSQLINJ "select name,binaryFile from metaChromGraph where binaryFile!='composite'");
     while ((row = sqlNextRow(sr)) != NULL)
         {
 	char *table = row[0], *binaryFile = row[1];
 	AllocVar(gg);
 	gg->name = gg->shortLabel = gg->longLabel = cloneString(table);
 	gg->binFileName = cloneString(binaryFile);
 	slAddHead(&list, gg);
 	}
     sqlFreeResult(&sr);
     }
 slReverse(&list);
 
 /* Where possible fill in additional info from trackDb. */
 for (gg = list; gg != NULL; gg = gg->next)
     {