ad3580e3f694fa60f6494a90bb1cb415bcc0bcbf tdreszer Mon Nov 28 10:35:01 2011 -0800 Jacob Pedersen noticed evofold was failing hgc because low type said double but actually the column contained a blob. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 936d9b8..30e0591 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -1452,31 +1452,35 @@ count++; #ifdef EXTRA_FIELDS_SUPPORT printf("<tr><td><B>%s:</B></td>", col->label); if (col->type == ftInteger) { long long valInt = sqlLongLong(fields[ix]); printf("<td>%lld</td></tr>\n", valInt); } else if (col->type == ftFloat) { double valDouble = sqlDouble(fields[ix]); printf("<td>%g</td></tr>\n", valDouble); } #else///ifndef EXTRA_FIELDS_SUPPORT printf("<tr><td><B>%s:</B></td>", col->comment); - if (asTypesIsInt(col->lowType->type)) + if (col->isList || col->isArray || col->lowType->stringy) + { + printf("<td>%s</td></tr>\n", fields[ix]); + } + else if (asTypesIsInt(col->lowType->type)) { long long valInt = sqlLongLong(fields[ix]); printf("<td>%lld</td></tr>\n", valInt); } else if (asTypesIsFloating(col->lowType->type)) { double valDouble = sqlDouble(fields[ix]); printf("<td>%g</td></tr>\n", valDouble); } #endif///ndef EXTRA_FIELDS_SUPPORT else { printf("<td>%s</td></tr>\n", fields[ix]); } }