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/snpFasta.c src/hg/lib/snpFasta.c index c062140..05d4f90 100644 --- src/hg/lib/snpFasta.c +++ src/hg/lib/snpFasta.c @@ -156,29 +156,29 @@ fprintf(f, "%s", el->leftFlank); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->rightFlank); if (sep == ',') fputc('"',f); fputc(lastSep,f); } /* -------------------------------- End autoSql Generated Code -------------------------------- */ void snpFastaTableCreate(struct sqlConnection *conn) /* create a snpFasta table */ { char *createString = -"NOSQLINJ CREATE TABLE snpFasta (\n" +NOSQLINJ "CREATE TABLE snpFasta (\n" " rsId varchar(255) not null, \n" " chrom varchar(255) not null, \n" " molType varchar(255) not null, \n" " class varchar(255) not null, \n" " observed longblob not null, \n" " leftFlank longblob not null, \n" " rightFlank longblob not null, \n" " INDEX rsId(rsId(12))\n" ");\n"; sqlRemakeTable(conn, "snpFasta", createString); }