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/bedItemOverlapCount/bedItemOverlapCount.c src/hg/bedItemOverlapCount/bedItemOverlapCount.c index 4cb765c..ad27a88 100644 --- src/hg/bedItemOverlapCount/bedItemOverlapCount.c +++ src/hg/bedItemOverlapCount/bedItemOverlapCount.c @@ -98,31 +98,31 @@ struct hash *ret; char **row; unsigned max = 0; if(host) { conn = sqlConnectRemote(host, user, password, database); } else { conn = sqlConnect(database); } ret = newHash(0); -sr = sqlGetResult(conn, "NOSQLINJ select * from chromInfo"); +sr = sqlGetResult(conn, NOSQLINJ "select * from chromInfo"); while ((row = sqlNextRow(sr)) != NULL) { el = chromInfoLoad(row); if (el->size > max) max = el->size; verbose(4, "Add hash %s value %u (%#lx)\n", el->chrom, el->size, (unsigned long)&el->size); hashAdd(ret, el->chrom, (void *)(& el->size)); } sqlFreeResult(&sr); sqlDisconnect(&conn); if (largest) *largest = max; return ret; } static unsigned chromosomeSize(char *chromosome) /* Return full extents of chromosome. Warn and fill in if none. */