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/lib/chromGraph.c src/hg/lib/chromGraph.c index 27e8995..1d80941 100644 --- src/hg/lib/chromGraph.c +++ src/hg/lib/chromGraph.c @@ -183,31 +183,31 @@ sr = sqlGetResult(conn, query); row = sqlNextRow(sr); if (row == NULL) errAbort("%s is not in metaChromGraph", trackName); *retMin = atof(row[0]); *retMax = atof(row[1]); sqlFreeResult(&sr); } struct slName *chromGraphListAll(struct sqlConnection *conn) /* Return list of all chrom graph tables. */ { if (!sqlTableExists(conn, "metaChromGraph")) return NULL; else - return sqlQuickList(conn, "NOSQLINJ select name from metaChromGraph"); + return sqlQuickList(conn, NOSQLINJ "select name from metaChromGraph"); } char *chromGraphBinaryFileName(char *trackName, struct sqlConnection *conn) /* Get binary file name associated with chromGraph track. Returns NULL * if no such file or track. FreeMem result when done. */ { char query[256]; sqlSafef(query, sizeof(query), "select binaryFile from metaChromGraph where name='%s'", trackName); return sqlQuickString(conn, query); } void chromGraphParseMinMax(char *trackName, char *text, double *pMin, double *pMax) /* Parse out min,max from text. TrackName is just for error reporting */