080a160c7b9595d516c9c70e83689a09b60839d0
galt
  Mon Jun 3 12:16:53 2013 -0700
fix SQL Injection
diff --git src/hg/inc/dbSnpRs.h src/hg/inc/dbSnpRs.h
index 85fdcaa..e0c0305 100644
--- src/hg/inc/dbSnpRs.h
+++ src/hg/inc/dbSnpRs.h
@@ -1,98 +1,87 @@
 /* dbSnpRs.h was originally generated by the autoSql program, which also 
  * generated dbSnpRs.c and dbSnpRs.sql.  This header links the database and
  * the RAM representation of objects. */
 
 #ifndef DBSNPRS_H
 #define DBSNPRS_H
 
 #ifndef JKSQL_H
 #include "jksql.h"
 #endif
 
 #define DBSNPRS_NUM_COLS 9
 
 struct dbSnpRs
 /* Information from dbSNP at the reference SNP level */
     {
     struct dbSnpRs *next;  /* Next in singly linked list. */
     char *rsId;	/* dbSnp reference snp (rs) identifier */
     float avHet;	/* the average heterozygosity from all observations */
     float avHetSE;	/* the Standard Error for the average heterozygosity */
     char *valid;	/* the validation status of the SNP */
     char *allele1;	/* the sequence of the first allele */
     char *allele2;	/* the sequence of the second allele */
     char *assembly;	/* the sequence in the assembly */
     char *alternate;	/* the sequence of the alternate allele */
     char *func;	/* the functional category of the SNP, if any */
     };
 
 void dbSnpRsStaticLoad(char **row, struct dbSnpRs *ret);
 /* Load a row from dbSnpRs table into ret.  The contents of ret will
  * be replaced at the next call to this function. */
 
 struct dbSnpRs *dbSnpRsLoad(char **row);
 /* Load a dbSnpRs from row fetched with select * from dbSnpRs
  * from database.  Dispose of this with dbSnpRsFree(). */
 
 struct dbSnpRs *dbSnpRsLoadAll(char *fileName);
 /* Load all dbSnpRs from whitespace-separated file.
  * Dispose of this with dbSnpRsFreeList(). */
 
 struct dbSnpRs *dbSnpRsLoadAllByChar(char *fileName, char chopper);
 /* Load all dbSnpRs from chopper separated file.
  * Dispose of this with dbSnpRsFreeList(). */
 
 #define dbSnpRsLoadAllByTab(a) dbSnpRsLoadAllByChar(a, '\t');
 /* Load all dbSnpRs from tab separated file.
  * Dispose of this with dbSnpRsFreeList(). */
 
 struct dbSnpRs *dbSnpRsLoadByQuery(struct sqlConnection *conn, char *query);
 /* Load all dbSnpRs from table that satisfy the query given.  
  * Where query is of the form 'select * from example where something=something'
  * or 'select example.* from example, anotherTable where example.something = 
  * anotherTable.something'.
  * Dispose of this with dbSnpRsFreeList(). */
 
 void dbSnpRsSaveToDb(struct sqlConnection *conn, struct dbSnpRs *el, char *tableName, int updateSize);
 /* Save dbSnpRs as a row to the table specified by tableName. 
  * As blob fields may be arbitrary size updateSize specifies the approx size
  * of a string that would contain the entire query. Arrays of native types are
  * converted to comma separated strings and loaded as such, User defined types are
- * inserted as NULL. Note that strings must be escaped to allow insertion into the database.
- * For example "autosql's features include" --> "autosql\'s features include" 
- * If worried about this use dbSnpRsSaveToDbEscaped() */
-
-void dbSnpRsSaveToDbEscaped(struct sqlConnection *conn, struct dbSnpRs *el, char *tableName, int updateSize);
-/* Save dbSnpRs as a row to the table specified by tableName. 
- * As blob fields may be arbitrary size updateSize specifies the approx size.
- * of a string that would contain the entire query. Automatically 
- * escapes all simple strings (not arrays of string) but may be slower than dbSnpRsSaveToDb().
- * For example automatically copies and converts: 
- * "autosql's features include" --> "autosql\'s features include" 
- * before inserting into database. */ 
+ * inserted as NULL. Strings are automatically escaped to allow insertion into the database. */
 
 struct dbSnpRs *dbSnpRsCommaIn(char **pS, struct dbSnpRs *ret);
 /* Create a dbSnpRs out of a comma separated string. 
  * This will fill in ret if non-null, otherwise will
  * return a new dbSnpRs */
 
 void dbSnpRsFree(struct dbSnpRs **pEl);
 /* Free a single dynamically allocated dbSnpRs such as created
  * with dbSnpRsLoad(). */
 
 void dbSnpRsFreeList(struct dbSnpRs **pList);
 /* Free a list of dynamically allocated dbSnpRs's */
 
 void dbSnpRsOutput(struct dbSnpRs *el, FILE *f, char sep, char lastSep);
 /* Print out dbSnpRs.  Separate fields with sep. Follow last field with lastSep. */
 
 #define dbSnpRsTabOut(el,f) dbSnpRsOutput(el,f,'\t','\n');
 /* Print out dbSnpRs as a line in a tab-separated file. */
 
 #define dbSnpRsCommaOut(el,f) dbSnpRsOutput(el,f,',',',');
 /* Print out dbSnpRs as a comma separated list including final comma. */
 
 /* -------------------------------- End autoSql Generated Code -------------------------------- */
 
 #endif /* DBSNPRS_H */