void symTestStaticLoad(char **row, struct symTest *ret) /* Load a row from symTest table into ret. The contents of ret will * be replaced at the next call to this function. */ { ret->id = sqlSigned(row[0]); ret->sex = sqlEnumParse(row[1], values_sex, &valhash_sex); ret->skills = sqlSetParse(row[2], values_skills, &valhash_skills); }
struct symTest *symTestLoad(char **row) /* Load a symTest from row fetched with select * from symTest * from database. Dispose of this with symTestFree(). */ { struct symTest *ret; AllocVar(ret); ret->id = sqlSigned(row[0]); ret->sex = sqlEnumParse(row[1], values_sex, &valhash_sex); ret->skills = sqlSetParse(row[2], values_skills, &valhash_skills); return ret; }
unsigned sqlSetComma(char **pS, char **values, struct hash **valHashPtr) /* Return set at *pS. (Either quoted or not.) Advance *pS. */ { return sqlSetParse(sqlGetOptQuoteString(pS), values, valHashPtr); }