aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/large_obj.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-10-23 22:33:56 +0900
committerFujii Masao <fujii@postgresql.org>2014-10-23 22:33:56 +0900
commitefbbbbc8b51bacd32e96c3f747dd6aa4c0e444cb (patch)
tree8c5746809cd085c7c82a33e2488103aab860e96d /src/bin/psql/large_obj.c
parent5ac372fc1a7cc673cc7d4cf26ba651d52495b27a (diff)
downloadpostgresql-efbbbbc8b51bacd32e96c3f747dd6aa4c0e444cb.tar.gz
postgresql-efbbbbc8b51bacd32e96c3f747dd6aa4c0e444cb.zip
Remove the unused argument of PSQLexec().
This commit simply removes the second argument of PSQLexec that was set to the same value everywhere. Comments and code blocks related to this parameter are removed. Noticed by Heikki Linnakangas, reviewed by Michael Paquier
Diffstat (limited to 'src/bin/psql/large_obj.c')
-rw-r--r--src/bin/psql/large_obj.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/psql/large_obj.c b/src/bin/psql/large_obj.c
index a26ace8b327..acb44993e03 100644
--- a/src/bin/psql/large_obj.c
+++ b/src/bin/psql/large_obj.c
@@ -73,7 +73,7 @@ start_lo_xact(const char *operation, bool *own_transaction)
{
case PQTRANS_IDLE:
/* need to start our own xact */
- if (!(res = PSQLexec("BEGIN", false)))
+ if (!(res = PSQLexec("BEGIN")))
return false;
PQclear(res);
*own_transaction = true;
@@ -103,9 +103,9 @@ finish_lo_xact(const char *operation, bool own_transaction)
if (own_transaction && pset.autocommit)
{
/* close out our own xact */
- if (!(res = PSQLexec("COMMIT", false)))
+ if (!(res = PSQLexec("COMMIT")))
{
- res = PSQLexec("ROLLBACK", false);
+ res = PSQLexec("ROLLBACK");
PQclear(res);
return false;
}
@@ -126,7 +126,7 @@ fail_lo_xact(const char *operation, bool own_transaction)
if (own_transaction && pset.autocommit)
{
/* close out our own xact */
- res = PSQLexec("ROLLBACK", false);
+ res = PSQLexec("ROLLBACK");
PQclear(res);
}
@@ -209,7 +209,7 @@ do_lo_import(const char *filename_arg, const char *comment_arg)
bufptr += PQescapeStringConn(pset.db, bufptr, comment_arg, slen, NULL);
strcpy(bufptr, "'");
- if (!(res = PSQLexec(cmdbuf, false)))
+ if (!(res = PSQLexec(cmdbuf)))
{
free(cmdbuf);
return fail_lo_xact("\\lo_import", own_transaction);
@@ -301,7 +301,7 @@ do_lo_list(void)
gettext_noop("Description"));
}
- res = PSQLexec(buf, false);
+ res = PSQLexec(buf);
if (!res)
return false;