diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-07-10 11:52:13 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-07-10 11:52:13 +0200 |
commit | 8f6b8dbe97181de6deced776f68e3ac30e3834fc (patch) | |
tree | e5d6acf2acdfadedffa899a222926f41d052df29 | |
parent | 5e25d7dbcfbfe1859862a719e4392f17cd356a9b (diff) |
Fix SELECT statement.
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 7cf78c1e9..790805b67 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -1302,9 +1302,9 @@ postgres_prepare (PGconn *db_conn) */ GNUNET_PQ_make_prepare ("get_kyc_status", - "SELECT " - "(kyc_checked" - ",merchant_serial_id)" + "SELECT" + " kyc_checked" + ",merchant_serial_id" " FROM kyc_merchants" " WHERE payto_url=$1", 1), @@ -6635,10 +6635,12 @@ postgres_get_kyc_status (void *cls, GNUNET_PQ_result_spec_end }; - qs = GNUNET_PQ_eval_prepared_singleton_select (session->conn, - "get_kyc_status", - params, - rs); + qs = GNUNET_PQ_eval_prepared_singleton_select + (session->conn, + "get_kyc_status", + params, + rs); + if (0 >= qs) return qs; |