df001a2baaeecd5781f40ec6769f016bf32f4cfc galt Tue Jun 18 11:03:38 2013 -0700 oops, I accidentally deleted the single quotes around the path field somehow, this puts them back the way it was. diff --git src/hg/lib/liftOverChain.c src/hg/lib/liftOverChain.c index 116f862..d78ba6c 100644 --- src/hg/lib/liftOverChain.c +++ src/hg/lib/liftOverChain.c @@ -98,31 +98,31 @@ slAddHead(&list, el); } slReverse(&list); sqlFreeResult(&sr); return list; } void liftOverChainSaveToDb(struct sqlConnection *conn, struct liftOverChain *el, char *tableName, int updateSize) /* Save liftOverChain 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. Strings are automatically escaped to allow insertion into the database. */ { struct dyString *update = newDyString(updateSize); -sqlDyStringPrintf(update, "insert into %s values ( '%s','%s',%s,%g,%u,%u,'%s',%g,'%s')", +sqlDyStringPrintf(update, "insert into %s values ( '%s','%s','%s',%g,%u,%u,'%s',%g,'%s')", tableName, el->fromDb, el->toDb, el->path, el->minMatch, el->minChainT, el->minSizeQ, el->multiple, el->minBlocks, el->fudgeThick); sqlUpdate(conn, update->string); freeDyString(&update); } struct liftOverChain *liftOverChainCommaIn(char **pS, struct liftOverChain *ret) /* Create a liftOverChain out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new liftOverChain */ { char *s = *pS; if (ret == NULL) AllocVar(ret);