diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-10 21:53:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-10 21:53:18 +0200 |
commit | d71e2f3b35de7fcce36806bdad44ecf4114f6740 (patch) | |
tree | 7609a2455317e58ddbfcd6a48548306ca812ec2a /src/include/gnunet_pq_lib.h | |
parent | 55b06f18c66ede06a2cf437b652de3a7c75c902a (diff) | |
download | gnunet-d71e2f3b35de7fcce36806bdad44ecf4114f6740.tar.gz gnunet-d71e2f3b35de7fcce36806bdad44ecf4114f6740.zip |
handle UNIQUE violation nicely
Diffstat (limited to 'src/include/gnunet_pq_lib.h')
-rw-r--r-- | src/include/gnunet_pq_lib.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index ff4df563d..0f6b88b78 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h | |||
@@ -525,7 +525,10 @@ GNUNET_PQ_eval_result (PGconn *connection, | |||
525 | * @return status code from the result, mapping PQ status | 525 | * @return status code from the result, mapping PQ status |
526 | * codes to `enum GNUNET_PQ_QueryStatus`. If the | 526 | * codes to `enum GNUNET_PQ_QueryStatus`. If the |
527 | * statement was a DELETE or UPDATE statement, the | 527 | * statement was a DELETE or UPDATE statement, the |
528 | * number of affected rows is returned. | 528 | * number of affected rows is returned; if the |
529 | * statment was an INSERT statement, and no row | ||
530 | * was added due to a UNIQUE violation, we return | ||
531 | * zero; if INSERT was successful, we return one. | ||
529 | */ | 532 | */ |
530 | enum GNUNET_PQ_QueryStatus | 533 | enum GNUNET_PQ_QueryStatus |
531 | GNUNET_PQ_eval_prepared_non_select (PGconn *connection, | 534 | GNUNET_PQ_eval_prepared_non_select (PGconn *connection, |