fix num
This commit is contained in:
@@ -29,8 +29,7 @@ long WrenchAccountSetPrefrence(CVars in, CVars &out){
|
||||
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, i);
|
||||
if (f.empty()) continue;
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res,0);
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user