857a84306ccc2fc4f6147edd822d1153dba507da kent Mon Sep 4 12:08:25 2017 -0700 Adding another verbose(2) level for debugging. diff --git src/tabFile/tabQuery/tabQuery.c src/tabFile/tabQuery/tabQuery.c index 5e7bf0a..1f2c4e5 100644 --- src/tabFile/tabQuery/tabQuery.c +++ src/tabFile/tabQuery/tabQuery.c @@ -38,30 +38,31 @@ char *lookup(void *record, char *key) /* Lookup key in record */ { struct fieldedRow *row = record; int fieldIx = hashIntValDefault(gFieldHash, key, -1); if (fieldIx < 0) errAbort("Field %s isn't found in %s", key, gTable->name); return row->row[fieldIx]; } void tabQuery(char *query) /* tabQuery - Run sql-like query on a tab separated file.. */ { /* Parse statement and make sure that it just references one table */ struct rqlStatement *rql = rqlStatementParseString(query); +verbose(2, "parsed %s ok\n", query); int tableCount = slCount(rql->tableList); if (tableCount != 1) errAbort("One and only one file allowed in the from clause\n"); boolean doCount = FALSE; if (sameWord(rql->command, "count")) doCount = TRUE; else if (sameWord(rql->command, "select")) doCount = FALSE; else errAbort("Unrecognized rql command %s", rql->command); /* Read in tab separated value file */ char *tabFile = rql->tableList->name; gTable = fieldedTableFromTabFile(tabFile, tabFile, NULL, 0);