fix query

This commit is contained in:
CHIEFSOFT\ameye
2023-07-21 13:59:30 -04:00
parent 5ba200f3e7
commit bf2a3f5851
+2 -1
View File
@@ -81,7 +81,8 @@ long getUserRecipientCombo( CVars in, CVars &out ){
out["total_record"] = "0";
const PGresult *res;
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, b.account_no,b.country,b.added,b.uid AS recipient_uid ,b.uid"
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, "
" b.account_no,b.country,b.added,b.uid AS recipient_uid ,b.uid "
"FROM sendmoney_recipient b "
"LEFT JOIN bank_entity_codes k ON k.code=b.bank_code "
"WHERE b.member_id = %lu AND b.status=1",member_id);