Fix SELECT statement.
This commit is contained in:
parent
5e25d7dbcf
commit
8f6b8dbe97
@ -1302,9 +1302,9 @@ postgres_prepare (PGconn *db_conn)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
GNUNET_PQ_make_prepare ("get_kyc_status",
|
GNUNET_PQ_make_prepare ("get_kyc_status",
|
||||||
"SELECT "
|
"SELECT"
|
||||||
"(kyc_checked"
|
" kyc_checked"
|
||||||
",merchant_serial_id)"
|
",merchant_serial_id"
|
||||||
" FROM kyc_merchants"
|
" FROM kyc_merchants"
|
||||||
" WHERE payto_url=$1",
|
" WHERE payto_url=$1",
|
||||||
1),
|
1),
|
||||||
@ -6635,10 +6635,12 @@ postgres_get_kyc_status (void *cls,
|
|||||||
GNUNET_PQ_result_spec_end
|
GNUNET_PQ_result_spec_end
|
||||||
};
|
};
|
||||||
|
|
||||||
qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn,
|
qs = GNUNET_PQ_eval_prepared_singleton_select
|
||||||
"get_kyc_status",
|
(session->conn,
|
||||||
params,
|
"get_kyc_status",
|
||||||
rs);
|
params,
|
||||||
|
rs);
|
||||||
|
|
||||||
if (0 >= qs)
|
if (0 >= qs)
|
||||||
return qs;
|
return qs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user