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/genoLay.c src/hg/lib/genoLay.c index bd31b0f..417d7b4 100644 --- src/hg/lib/genoLay.c +++ src/hg/lib/genoLay.c @@ -70,31 +70,31 @@ return -1; } else if (isdigit(bName[0])) return 1; else return strcmp(aName, bName); } struct genoLayChrom *genoLayDbChromsExt(struct sqlConnection *conn, boolean withRandom, boolean abortOnErr) /* Get chrom info list. */ { struct sqlResult *sr; char **row; struct genoLayChrom *chrom, *chromList = NULL; -sr = sqlGetResult(conn, "NOSQLINJ select chrom,size from chromInfo"); +sr = sqlGetResult(conn, NOSQLINJ "select chrom,size from chromInfo"); while ((row = sqlNextRow(sr)) != NULL) { char *name = row[0]; if (withRandom || ( (startsWith("chr", name)) && (!startsWith("chrUn", name)) && (!sameString("chrM", name)) && (!strchr(name, '_')) // avoiding _random and _hap* ) ) { AllocVar(chrom); chrom->fullName = cloneString(name); chrom->shortName = chrom->fullName+3;