exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit f92af896f8a2f07aba3a90434b2ee3aa51b45149
parent 494e71b9a6e1d6942c758dadda8c8946c99137d2
Author: Sree Harsha Totakura <sreeharsha@totakura.in>
Date:   Thu,  5 Mar 2015 16:45:31 +0100

db: No special handling for failed INDEX creation

Diffstat:
Msrc/mint/mint_db.c | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/mint/mint_db.c b/src/mint/mint_db.c @@ -164,16 +164,8 @@ TALER_MINT_DB_create_tables (int temporary) ",balance_fraction INT4 NOT NULL" ",expiration_date INT8 NOT NULL" ");"); - result = PQexec (conn, - "CREATE INDEX reserves_in_index ON reserves_in (reserve_pub);"); - if (PGRES_COMMAND_OK != PQresultStatus (result)) - { - ExecStatusType status = PQresultStatus (result); - PQclear (result); - result = NULL; - goto SQLEXEC_fail; - } - PQclear (result); + /* Create an index on the foreign key as it is not created automatically by PSQL */ + SQLEXEC ("CREATE INDEX reserves_in_index ON reserves_in (reserve_pub);"); SQLEXEC ("CREATE TABLE IF NOT EXISTS collectable_blindcoins" "(" "blind_ev BYTEA PRIMARY KEY"