diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-01 16:08:38 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-01 16:08:38 +0200 |
commit | 2bb07d251cc8eead7a0fcf1c0c7100477f107027 (patch) | |
tree | 7a5416b77e8a8a69e18a3be524fe078cd381c1b0 /src/pq/pq_connect.c | |
parent | 754d8c1b496624e5c879af7d142fc9fd34de3a21 (diff) | |
parent | 54b5a20700a1ed27b1067a7cd55329ddc5b0d611 (diff) | |
download | gnunet-2bb07d251cc8eead7a0fcf1c0c7100477f107027.tar.gz gnunet-2bb07d251cc8eead7a0fcf1c0c7100477f107027.zip |
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/pq/pq_connect.c')
-rw-r--r-- | src/pq/pq_connect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c index e3a610922..881a158bb 100644 --- a/src/pq/pq_connect.c +++ b/src/pq/pq_connect.c | |||
@@ -172,6 +172,8 @@ apply_patch (struct GNUNET_PQ_Context *db, | |||
172 | "-f", | 172 | "-f", |
173 | buf, | 173 | buf, |
174 | "-q", | 174 | "-q", |
175 | "--set", | ||
176 | "ON_ERROR_STOP=1", | ||
175 | NULL); | 177 | NULL); |
176 | if (NULL == psql) | 178 | if (NULL == psql) |
177 | { | 179 | { |
@@ -415,7 +417,7 @@ GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db) | |||
415 | db->load_path)) | 417 | db->load_path)) |
416 | { | 418 | { |
417 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 419 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
418 | "Failed to load SQL statements from `%s'\n", | 420 | "Failed to load SQL statements from `%s*'\n", |
419 | db->load_path); | 421 | db->load_path); |
420 | PQfinish (db->conn); | 422 | PQfinish (db->conn); |
421 | db->conn = NULL; | 423 | db->conn = NULL; |