d2429b17bb096f6c406a2ae03fb5593f27fa53c1 hiram Mon Mar 18 14:17:07 2019 -0700 hash up the output properly for hubPublic and dbDb outputs refs #18869 diff --git src/hg/hubApi/getData.c src/hg/hubApi/getData.c index 41d3fd0..38a8598 100644 --- src/hg/hubApi/getData.c +++ src/hg/hubApi/getData.c @@ -1,23 +1,25 @@ /* manage endpoint /getData/ functions */ #include "dataApi.h" static void tableDataOutput(struct sqlConnection *conn, struct jsonWrite *jw, char *query, char *table) /* output the table data from the specified query string */ { -int columnCount = tableColumns(conn, jw, table); +char **columnNames = NULL; +char **columnTypes = NULL; +int columnCount = tableColumns(conn, jw, table, &columnNames, &columnTypes); jsonWriteListStart(jw, "trackData"); struct sqlResult *sr = sqlGetResult(conn, query); char **row = NULL; while ((row = sqlNextRow(sr)) != NULL) { jsonWriteListStart(jw, NULL); int i = 0; for (i = 0; i < columnCount; ++i) jsonWriteString(jw, NULL, row[i]); jsonWriteListEnd(jw); } jsonWriteListEnd(jw); } static struct bbiFile *bigFileOpen(char *trackType, char *bigDataUrl)