diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-05 16:05:06 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-06 10:31:22 +0100 |
commit | 0acd5714e0ea48888e60d4caeeb37188a94e52b1 (patch) | |
tree | 9172d23b53b01ec71b1158ff79c0631d766c15b9 /src/mint/taler-mint-httpd_db.c | |
parent | b82a593dbbf5cf4332bd473e17421d230dbeeff8 (diff) |
Move table creation logic to DB layer. Also support temporary schema creation for the sake of testing
Diffstat (limited to 'src/mint/taler-mint-httpd_db.c')
-rw-r--r-- | src/mint/taler-mint-httpd_db.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c index 19fcb1c12..d5613c0dc 100644 --- a/src/mint/taler-mint-httpd_db.c +++ b/src/mint/taler-mint-httpd_db.c @@ -85,7 +85,7 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection, struct TALER_MINT_DenomKeyIssuePriv *dki; int ret; - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); @@ -203,7 +203,7 @@ TALER_MINT_db_execute_withdraw_status (struct MHD_Connection *connection, struct ReserveHistory *rh; int res; - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); @@ -264,7 +264,7 @@ TALER_MINT_db_execute_withdraw_sign (struct MHD_Connection *connection, blinded_msg_len, &h_blind); - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); @@ -521,7 +521,7 @@ TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection, int res; unsigned int i; - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); @@ -650,7 +650,7 @@ TALER_MINT_db_execute_refresh_commit (struct MHD_Connection *connection, unsigned int j; int res; - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); @@ -1034,7 +1034,7 @@ TALER_MINT_db_execute_refresh_reveal (struct MHD_Connection *connection, unsigned int j; unsigned int off; - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); @@ -1202,7 +1202,7 @@ TALER_MINT_db_execute_refresh_link (struct MHD_Connection *connection, struct TALER_EncryptedLinkSecret shared_secret_enc; struct LinkDataList *ldl; - if (NULL == (db_conn = TALER_MINT_DB_get_connection ())) + if (NULL == (db_conn = TALER_MINT_DB_get_connection (GNUNET_NO))) { GNUNET_break (0); return TALER_MINT_reply_internal_db_error (connection); |