080a160c7b9595d516c9c70e83689a09b60839d0
galt
  Mon Jun 3 12:16:53 2013 -0700
fix SQL Injection
diff --git src/hg/inc/pslReader.h src/hg/inc/pslReader.h
index 3f87253..65c43e2 100644
--- src/hg/inc/pslReader.h
+++ src/hg/inc/pslReader.h
@@ -1,19 +1,31 @@
 /* pslReader - object to read psl objects from database tables or files.  */
 #ifndef PSLREADER_H
 #define PSLREADER_H
 
+/* Options to pslGetCreateSql */
+#define PSL_TNAMEIX   0x01  /* create target name index */
+#define PSL_WITH_BIN  0x02  /* add bin column */
+
+char* pslGetCreateSql(char* table, unsigned options, int tNameIdxLen);
+/* Get SQL required to create PSL table.  Options is a bit set consisting
+ * of PSL_TNAMEIX, PSL_WITH_BIN, and PSL_XA_FORMAT.  tNameIdxLen is
+ * the number of characters in target name to index.  If greater than
+ * zero, must specify PSL_TNAMEIX.  If zero and PSL_TNAMEIX is specified,
+ * to will default to 8. */
+
+
 struct pslReader;
 struct sqlConnection;
 
 struct pslReader *pslReaderQuery(struct sqlConnection* conn,
                                  char* table, char* where);
 /* Create a new pslReader to read from the given table in the database.
  * If where is not null, it is added as a where clause.  It will determine if
  * pslx columns are in the table. */
 
 struct pslReader *pslReaderChromQuery(struct sqlConnection* conn,
                                       char* table, char* chrom,
                                       char* extraWhere);
 /* Create a new pslReader to read all rows for a chrom in a database table.
  * If extraWhere is not null, it is added as an additional where condition. It
  * will determine if pslx columns are in the table. */