1e6566439ca544eb838a2247ade0dd2d08c6b762 angie Wed Apr 20 09:54:01 2016 -0700 Adding special case to asTypeNameFromSqlType: sometimes a field is declared as string in .as but then in .sql it's changed to date (e.g. gbCdnaInfo.moddate), so treat sql type date as string. diff --git src/lib/asParse.c src/lib/asParse.c index a3d8069..9747613 100644 --- src/lib/asParse.c +++ src/lib/asParse.c @@ -128,30 +128,32 @@ } } int i; for (i = 0; i < ArraySize(asTypes); i++) if (sameString(buf, asTypes[i].sqlName)) { if (isArray) { int typeLen = strlen(buf); safef(buf+typeLen, sizeof(buf)-typeLen, "[%d]", arraySize); return buf; } else return asTypes[i].name; } +if (sameString(buf, "date")) + return "string"; return NULL; } static struct asColumn *findColumn(struct asObject *table, char *colName) /* Return column or null. */ { struct asColumn *col; for (col = table->columnList; col != NULL; col = col->next) { if (sameWord(col->name, colName)) return col; } return NULL; }