From 3ac86568b0223ab3dfca83b497208dc0f2261fdd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 May 2015 09:33:15 +0200 Subject: use talercheck DB --- src/mintdb/test-mint-db-postgres.conf | 2 +- src/pq/test_pq.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mintdb/test-mint-db-postgres.conf b/src/mintdb/test-mint-db-postgres.conf index a5a738e49..07f8a0e58 100644 --- a/src/mintdb/test-mint-db-postgres.conf +++ b/src/mintdb/test-mint-db-postgres.conf @@ -3,4 +3,4 @@ DB = postgres #The connection string the plugin has to use for connecting to the database -DB_CONN_STR = postgres:///taler +DB_CONN_STR = postgres:///talercheck diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c index 260323ef2..2133182d0 100644 --- a/src/pq/test_pq.c +++ b/src/pq/test_pq.c @@ -165,7 +165,7 @@ main(int argc, int ret; // FIXME: pass valid connect string for tests... - conn = PQconnectdb (""); + conn = PQconnectdb ("postgres:///talercheck"); if (CONNECTION_OK != PQstatus (conn)) { fprintf (stderr, @@ -177,7 +177,7 @@ main(int argc, } result = PQexec (conn, - "CREATE TABLE test_pq (" + "CREATE TEMPORARY TABLE IF NOT EXISTS test_pq (" " pub BYTEA NOT NULL" ",sig BYTEA NOT NULL" ",abs_time INT8 NOT NULL" -- cgit v1.2.3