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/hgc/hgc.c src/hg/hgc/hgc.c
index 37d8229..5764325 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -22147,31 +22147,31 @@
printf("Sequence: %s
\n", oligo);
printf("Chromosome: %s
\n", seqName);
printf("Start: %s
\n", item+1);
printf("Strand: %c
\n", item[0]);
webIncludeHelpFile(OLIGO_MATCH_TRACK_NAME, TRUE);
}
struct slName *cutterIsoligamers(struct cutter *myEnzyme)
/* Find enzymes with same cut site. */
{
struct sqlConnection *conn;
struct cutter *cutters = NULL;
struct slName *ret = NULL;
conn = hAllocConn("hgFixed");
-cutters = cutterLoadByQuery(conn, "NOSQLINJ select * from cutters");
+cutters = cutterLoadByQuery(conn, NOSQLINJ "select * from cutters");
ret = findIsoligamers(myEnzyme, cutters);
hFreeConn(&conn);
cutterFreeList(&cutters);
return ret;
}
void cutterPrintSite(struct cutter *enz)
/* Print out the enzyme REBASE style. */
{
int i;
for (i = 0; i < enz->size+1; i++)
{
if (i == enz->cut)
printf("^");
else if (i == enz->cut + enz->overhang)