9466f0e71913fd917ee6c919a8a8b31edd59a9c0
braney
  Thu Jan 3 16:34:29 2019 -0800
use all of query for index #22713

diff --git src/hg/lib/pslReader.c src/hg/lib/pslReader.c
index 36b3bde..8a9b109 100644
--- src/hg/lib/pslReader.c
+++ src/hg/lib/pslReader.c
@@ -27,31 +27,31 @@
     "qSize int unsigned not null,       # Query sequence size\n"
     "qStart int unsigned not null,      # Alignment start position in query\n"
     "qEnd int unsigned not null,        # Alignment end position in query\n"
     "tName varchar(255) not null,       # Target sequence name\n"
     "tSize int unsigned not null,       # Target sequence size\n"
     "tStart int unsigned not null,      # Alignment start position in target\n"
     "tEnd int unsigned not null,        # Alignment end position in target\n"
     "blockCount int unsigned not null,  # Number of blocks in alignment\n"
     "blockSizes longblob not null,      # Size of each block\n"
     "qStarts longblob not null, # Start of each block in query.\n"
     "tStarts longblob not null, # Start of each block in target.\n";
 
 static char *indexString =
           "#Indices\n"
     "%s"                            /* Optional bin. */
-    "INDEX(qName(12))\n"
+    "INDEX(qName)\n"
 ")\n";
 
 
 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 dyString *sqlCmd = newDyString(2048);
 char binIx[32];
 
 binIx[0] = '\0';