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/estOrient/estOrient.c src/hg/estOrient/estOrient.c index 1afb583..040bc07 100644 --- src/hg/estOrient/estOrient.c +++ src/hg/estOrient/estOrient.c @@ -116,31 +116,31 @@ static struct hash *loadOrientInfoTbl(struct sqlConnection *conn, char *chrom) /* load data from estOrientInfo table for chrom, or all if chrom is NULL */ { struct hash *orientHash = hashNew(24); struct sqlResult *sr; int rowOff; char **row; /* to save memory, only select ones where orientation was determined from * introns. */ if (chrom != NULL) sr = hChromQuery(conn, "estOrientInfo", chrom, "(intronOrientation != 0)", &rowOff); else { rowOff = (sqlFieldIndex(conn, "estOrientInfo", "bin") < 0) ? 0 : 1; - sr = sqlGetResult(conn, "NOSQLINJ select * from estOrientInfo where (intronOrientation != 0)"); + sr = sqlGetResult(conn, NOSQLINJ "select * from estOrientInfo where (intronOrientation != 0)"); } while ((row = sqlNextRow(sr)) != NULL) { struct estOrientInfo *eoi = estOrientInfoLoadLm(row+rowOff, orientHash->lm); hashAdd(orientHash, eoi->name, eoi); } return orientHash; } static struct hash *loadOrientInfoFile(char *orientInfoFile) /* load data estOrientInfo data from a file */ { struct hash *orientHash = hashNew(24); struct lineFile *lf = lineFileOpen(orientInfoFile, TRUE);