c982b5919d56ac47a8ee35fb70a664602571d5c9 kent Sun May 5 11:39:15 2013 -0700 Fixing bug for lstring in saveToDb C output. diff --git src/hg/autoSql/autoSql.c src/hg/autoSql/autoSql.c index 86b5116..577a805 100644 --- src/hg/autoSql/autoSql.c +++ src/hg/autoSql/autoSql.c @@ -1025,30 +1025,31 @@ dyStringPrintf(stringDeclarations, "char "); for (col = table->columnList; col != NULL; col = col->next) { char *colName = col->name; char *outString = NULL; /* printf formater for column, i.e. %d for int, '%s' for string */ struct asTypeInfo *lt = col->lowType; enum asTypes type = lt->type; char colInsertBuff[256]; /* what variable name matches up with the printf format character in outString */ boolean colInsertFlag = TRUE; /* if column is not a native type insert NULL with no associated variable */ switch(type) { case t_char: outString = (col->fixedSize > 0) ? "'%s'" : "'%c'"; break; case t_string: + case t_lstring: outString = "'%s'"; break; default: outString = lt->outFormat; break; } switch(type) { case t_char: case t_string: case t_lstring: sprintf(colInsertBuff, " el->%s", colName); break; default: