fix query
This commit is contained in:
@@ -82,7 +82,7 @@ long WrenchPromoGetMember( CVars in, CVars &out )
|
|||||||
out["sum_total_record"] = pgsql_num_rows(res);
|
out["sum_total_record"] = pgsql_num_rows(res);
|
||||||
|
|
||||||
res = pgsql_query("SELECT * FROM promo_member"
|
res = pgsql_query("SELECT * FROM promo_member"
|
||||||
" WHERE admin_id = %lu AND uis = '%s' ",admin_id,in["member_uid"].c_str());
|
" WHERE admin_id = %lu AND uid = '%s' ",admin_id,in["member_uid"].c_str());
|
||||||
|
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
|
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user