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/chromInfo.c src/hg/lib/chromInfo.c index 5c55c47..0754dd1 100644 --- src/hg/lib/chromInfo.c +++ src/hg/lib/chromInfo.c @@ -162,31 +162,31 @@ struct chromInfo *createChromInfoList(char *name, char *database) /* Load up chromosome information for chrom 'name'. * If name is NULL or "all" then load all chroms. * Similar to featureBits.c - could be moved to library */ { struct sqlConnection *conn = hAllocConn(database); struct sqlResult *sr = NULL; char **row; int loaded=0; struct chromInfo *ret = NULL; unsigned totalSize = 0; /* do the query */ if (!name || sameWord(name, "all")) - sr = sqlGetResult(conn, "NOSQLINJ select * from chromInfo"); + sr = sqlGetResult(conn, NOSQLINJ "select * from chromInfo"); else { char select[256]; sqlSafef(select, ArraySize(select), "select * from chromInfo where chrom='%s'", name); sr = sqlGetResult(conn, select); } /* read the rows and build the chromInfo list */ while ((row = sqlNextRow(sr)) != NULL) { struct chromInfo *el; struct chromInfo *ci; AllocVar(ci); el = chromInfoLoad(row); ci->chrom = cloneString(el->chrom); ci->size = el->size;