Cosmetic code cleanup: fix a bunch of places that used "return (expr);"
rather than "return expr;" -- the latter style is used in most of the tree. I kept the parentheses when they were necessary or useful because the return expression was complex.
This commit is contained in:
parent
762bcbdba2
commit
fb627b76cc
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.205 2005/11/26 05:03:06 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.206 2006/01/11 08:43:11 neilc Exp $
|
||||
*
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
@ -2796,7 +2796,7 @@ log_heap_clean(Relation reln, Buffer buffer, OffsetNumber *unused, int uncnt)
|
||||
|
||||
recptr = XLogInsert(RM_HEAP_ID, XLOG_HEAP_CLEAN, rdata);
|
||||
|
||||
return (recptr);
|
||||
return recptr;
|
||||
}
|
||||
|
||||
static XLogRecPtr
|
||||
@ -2884,14 +2884,14 @@ log_heap_update(Relation reln, Buffer oldbuf, ItemPointerData from,
|
||||
|
||||
recptr = XLogInsert(RM_HEAP_ID, info, rdata);
|
||||
|
||||
return (recptr);
|
||||
return recptr;
|
||||
}
|
||||
|
||||
XLogRecPtr
|
||||
log_heap_move(Relation reln, Buffer oldbuf, ItemPointerData from,
|
||||
Buffer newbuf, HeapTuple newtup)
|
||||
{
|
||||
return (log_heap_update(reln, oldbuf, from, newbuf, newtup, true));
|
||||
return log_heap_update(reln, oldbuf, from, newbuf, newtup, true);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.57 2005/12/03 05:50:59 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.58 2006/01/11 08:43:11 neilc Exp $
|
||||
*
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
@ -182,7 +182,7 @@ heap_tuple_untoast_attr_slice(varattrib *attr, int32 sliceoffset, int32 slicelen
|
||||
if (VARATT_IS_EXTERNAL(attr))
|
||||
{
|
||||
/* fast path */
|
||||
return (toast_fetch_datum_slice(attr, sliceoffset, slicelength));
|
||||
return toast_fetch_datum_slice(attr, sliceoffset, slicelength);
|
||||
}
|
||||
else
|
||||
preslice = attr;
|
||||
@ -1338,7 +1338,7 @@ toast_fetch_datum_slice(varattrib *attr, int32 sliceoffset, int32 length)
|
||||
VARATT_SIZEP(result) |= VARATT_FLAG_COMPRESSED;
|
||||
|
||||
if (length == 0)
|
||||
return (result); /* Can save a lot of work at this point! */
|
||||
return result; /* Can save a lot of work at this point! */
|
||||
|
||||
startchunk = sliceoffset / TOAST_MAX_CHUNK_SIZE;
|
||||
endchunk = (sliceoffset + length - 1) / TOAST_MAX_CHUNK_SIZE;
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.129 2005/11/22 18:17:06 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.130 2006/01/11 08:43:11 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1498,7 +1498,7 @@ _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf)
|
||||
/* write and let go of metapage buffer */
|
||||
_bt_wrtbuf(rel, metabuf);
|
||||
|
||||
return (rootbuf);
|
||||
return rootbuf;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.225 2005/12/29 18:08:05 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.226 2006/01/11 08:43:12 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -561,7 +561,7 @@ XLogInsert(RmgrId rmid, uint8 info, XLogRecData *rdata)
|
||||
{
|
||||
RecPtr.xlogid = 0;
|
||||
RecPtr.xrecoff = SizeOfXLogLongPHD; /* start of 1st chkpt record */
|
||||
return (RecPtr);
|
||||
return RecPtr;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -953,7 +953,7 @@ begin:;
|
||||
|
||||
END_CRIT_SECTION();
|
||||
|
||||
return (RecPtr);
|
||||
return RecPtr;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1742,7 +1742,7 @@ XLogFileInit(uint32 log, uint32 seg,
|
||||
path, log, seg)));
|
||||
}
|
||||
else
|
||||
return (fd);
|
||||
return fd;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1834,7 +1834,7 @@ XLogFileInit(uint32 log, uint32 seg,
|
||||
errmsg("could not open file \"%s\" (log file %u, segment %u): %m",
|
||||
path, log, seg)));
|
||||
|
||||
return (fd);
|
||||
return fd;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -11,7 +11,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.39 2005/10/15 02:49:11 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.40 2006/01/11 08:43:12 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -51,13 +51,13 @@ XLogReadBuffer(bool extend, Relation reln, BlockNumber blkno)
|
||||
}
|
||||
if (buffer != InvalidBuffer)
|
||||
LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE);
|
||||
return (buffer);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
buffer = ReadBuffer(reln, blkno);
|
||||
if (buffer != InvalidBuffer)
|
||||
LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE);
|
||||
return (buffer);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
@ -141,7 +141,7 @@ _xl_new_reldesc(void)
|
||||
if (_xlast < _xlcnt)
|
||||
{
|
||||
_xlrelarr[_xlast].reldata.rd_rel = &(_xlpgcarr[_xlast]);
|
||||
return (&(_xlrelarr[_xlast]));
|
||||
return &(_xlrelarr[_xlast]);
|
||||
}
|
||||
|
||||
/* reuse */
|
||||
@ -150,7 +150,7 @@ _xl_new_reldesc(void)
|
||||
_xl_remove_hash_entry(res);
|
||||
|
||||
_xlast--;
|
||||
return (res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
@ -249,7 +249,7 @@ XLogOpenRelation(RelFileNode rnode)
|
||||
_xlrelarr[0].lessRecently = res;
|
||||
res->lessRecently->moreRecently = res;
|
||||
|
||||
return (&(res->reldata));
|
||||
return &(res->reldata);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -26,7 +26,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.263 2006/01/07 22:30:43 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.264 2006/01/11 08:43:12 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1231,7 +1231,7 @@ lnext: ;
|
||||
default:
|
||||
elog(ERROR, "unrecognized heap_lock_tuple status: %u",
|
||||
test);
|
||||
return (NULL);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2109,7 +2109,7 @@ lpqnext:;
|
||||
epq->rti = 0;
|
||||
estate->es_useEvalPlan = false;
|
||||
/* and continue Query execution */
|
||||
return (NULL);
|
||||
return NULL;
|
||||
}
|
||||
Assert(oldepq->rti != 0);
|
||||
/* push current PQ to freePQ stack */
|
||||
@ -2119,7 +2119,7 @@ lpqnext:;
|
||||
goto lpqnext;
|
||||
}
|
||||
|
||||
return (slot);
|
||||
return slot;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.60 2005/11/22 18:17:11 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.61 2006/01/11 08:43:12 neilc Exp $
|
||||
*
|
||||
* Since the server static private key ($DataDir/server.key)
|
||||
* will normally be stored unencrypted so that the database
|
||||
@ -486,7 +486,7 @@ my_SSL_set_fd(SSL *s, int fd)
|
||||
SSL_set_bio(s, bio, bio);
|
||||
ret = 1;
|
||||
err:
|
||||
return (ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -11,7 +11,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.62 2005/10/15 02:49:28 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.63 2006/01/11 08:43:12 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -49,19 +49,19 @@ wchareq(char *p1, char *p2)
|
||||
|
||||
/* Optimization: quickly compare the first byte. */
|
||||
if (*p1 != *p2)
|
||||
return (0);
|
||||
return 0;
|
||||
|
||||
p1_len = pg_mblen(p1);
|
||||
if (pg_mblen(p2) != p1_len)
|
||||
return (0);
|
||||
return 0;
|
||||
|
||||
/* They are the same length */
|
||||
while (p1_len--)
|
||||
{
|
||||
if (*p1++ != *p2++)
|
||||
return (0);
|
||||
return 0;
|
||||
}
|
||||
return (1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*--------------------
|
||||
@ -91,7 +91,7 @@ iwchareq(char *p1, char *p2)
|
||||
* different characters
|
||||
*/
|
||||
else if ((unsigned char) *p1 < CHARMAX || (unsigned char) *p2 < CHARMAX)
|
||||
return (0);
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* ok, p1 and p2 are both > CHARMAX, then they must be multibyte
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* PostgreSQL type definitions for MAC addresses.
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/mac.c,v 1.35 2005/10/15 02:49:28 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/mac.c,v 1.36 2006/01/11 08:43:12 neilc Exp $
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
@ -194,7 +194,7 @@ text_macaddr(PG_FUNCTION_ARGS)
|
||||
|
||||
result = DirectFunctionCall1(macaddr_in, CStringGetDatum(str));
|
||||
|
||||
return (result);
|
||||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* PostgreSQL type definitions for the INET and CIDR types.
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.57 2005/12/25 02:14:17 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.58 2006/01/11 08:43:12 neilc Exp $
|
||||
*
|
||||
* Jon Postel RIP 16 Oct 1998
|
||||
*/
|
||||
@ -898,7 +898,7 @@ bitncmp(void *l, void *r, int n)
|
||||
b = n / 8;
|
||||
x = memcmp(l, r, b);
|
||||
if (x)
|
||||
return (x);
|
||||
return x;
|
||||
|
||||
lb = ((const u_char *) l)[b];
|
||||
rb = ((const u_char *) r)[b];
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Encoding names and routines for work with it. All
|
||||
* in this file is shared bedween FE and BE.
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mb/encnames.c,v 1.26 2005/10/15 02:49:33 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mb/encnames.c,v 1.27 2006/01/11 08:43:12 neilc Exp $
|
||||
*/
|
||||
#ifdef FRONTEND
|
||||
#include "postgres_fe.h"
|
||||
@ -490,7 +490,7 @@ pg_char_to_encoding(const char *s)
|
||||
pg_encname *p = NULL;
|
||||
|
||||
if (!s)
|
||||
return (-1);
|
||||
return -1;
|
||||
|
||||
p = pg_char_to_encname_struct(s);
|
||||
return p ? p->encoding : -1;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* (currently mule internal code (mic) is used)
|
||||
* Tatsuo Ishii
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.53 2006/01/11 06:59:22 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.54 2006/01/11 08:43:12 neilc Exp $
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
@ -64,7 +64,7 @@ SetClientEncoding(int encoding, bool doit)
|
||||
MemoryContext oldcontext;
|
||||
|
||||
if (!PG_VALID_FE_ENCODING(encoding))
|
||||
return (-1);
|
||||
return -1;
|
||||
|
||||
/* Can't do anything during startup, per notes above */
|
||||
if (!backend_startup_complete)
|
||||
@ -196,7 +196,7 @@ int
|
||||
pg_get_client_encoding(void)
|
||||
{
|
||||
Assert(ClientEncoding);
|
||||
return (ClientEncoding->encoding);
|
||||
return ClientEncoding->encoding;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -206,7 +206,7 @@ const char *
|
||||
pg_get_client_encoding_name(void)
|
||||
{
|
||||
Assert(ClientEncoding);
|
||||
return (ClientEncoding->name);
|
||||
return ClientEncoding->name;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -483,7 +483,7 @@ pg_mbstrlen(const char *mbstr)
|
||||
mbstr += pg_mblen(mbstr);
|
||||
len++;
|
||||
}
|
||||
return (len);
|
||||
return len;
|
||||
}
|
||||
|
||||
/* returns the length (counted in wchars) of a multibyte string
|
||||
@ -506,7 +506,7 @@ pg_mbstrlen_with_len(const char *mbstr, int limit)
|
||||
mbstr += l;
|
||||
len++;
|
||||
}
|
||||
return (len);
|
||||
return len;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -536,7 +536,7 @@ pg_mbcliplen(const char *mbstr, int len, int limit)
|
||||
len -= l;
|
||||
mbstr += l;
|
||||
}
|
||||
return (clen);
|
||||
return clen;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -563,7 +563,7 @@ pg_mbcharcliplen(const char *mbstr, int len, int limit)
|
||||
len -= l;
|
||||
mbstr += l;
|
||||
}
|
||||
return (clen);
|
||||
return clen;
|
||||
}
|
||||
|
||||
void
|
||||
@ -586,14 +586,14 @@ int
|
||||
GetDatabaseEncoding(void)
|
||||
{
|
||||
Assert(DatabaseEncoding);
|
||||
return (DatabaseEncoding->encoding);
|
||||
return DatabaseEncoding->encoding;
|
||||
}
|
||||
|
||||
const char *
|
||||
GetDatabaseEncodingName(void)
|
||||
{
|
||||
Assert(DatabaseEncoding);
|
||||
return (DatabaseEncoding->name);
|
||||
return DatabaseEncoding->name;
|
||||
}
|
||||
|
||||
Datum
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.143 2005/12/18 02:17:16 petere Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.144 2006/01/11 08:43:12 neilc Exp $
|
||||
*/
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
@ -2169,7 +2169,7 @@ complete_from_list(const char *text, int state)
|
||||
casesensitive = false;
|
||||
list_index = 0;
|
||||
state++;
|
||||
return (complete_from_list(text, state));
|
||||
return complete_from_list(text, state);
|
||||
}
|
||||
|
||||
/* If no more matches, return null. */
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.324 2005/11/22 18:17:32 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.325 2006/01/11 08:43:13 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2936,7 +2936,7 @@ PQsetClientEncoding(PGconn *conn, const char *encoding)
|
||||
status = 0; /* everything is ok */
|
||||
}
|
||||
PQclear(res);
|
||||
return (status);
|
||||
return status;
|
||||
}
|
||||
|
||||
PGVerbosity
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.177 2005/11/22 18:17:32 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.178 2006/01/11 08:43:13 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2271,7 +2271,7 @@ PQsetnonblocking(PGconn *conn, int arg)
|
||||
|
||||
/* early out if the socket is already in the state requested */
|
||||
if (barg == conn->nonblocking)
|
||||
return (0);
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* to guarantee constancy for flushing/query/result-polling behavior we
|
||||
@ -2281,11 +2281,11 @@ PQsetnonblocking(PGconn *conn, int arg)
|
||||
*/
|
||||
/* if we are going from blocking to non-blocking flush here */
|
||||
if (pqFlush(conn))
|
||||
return (-1);
|
||||
return -1;
|
||||
|
||||
conn->nonblocking = barg;
|
||||
|
||||
return (0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2295,7 +2295,7 @@ PQsetnonblocking(PGconn *conn, int arg)
|
||||
int
|
||||
PQisnonblocking(const PGconn *conn)
|
||||
{
|
||||
return (pqIsnonblocking(conn));
|
||||
return pqIsnonblocking(conn);
|
||||
}
|
||||
|
||||
/* try to force data out, really only useful for non-blocking users */
|
||||
|
@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.123 2005/11/22 18:17:33 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.124 2006/01/11 08:43:13 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1090,7 +1090,7 @@ pqSocketPoll(int sock, int forRead, int forWrite, time_t end_time)
|
||||
int
|
||||
PQmblen(const char *s, int encoding)
|
||||
{
|
||||
return (pg_encoding_mblen(encoding, s));
|
||||
return pg_encoding_mblen(encoding, s);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1100,7 +1100,7 @@ PQmblen(const char *s, int encoding)
|
||||
int
|
||||
PQdsplen(const char *s, int encoding)
|
||||
{
|
||||
return (pg_encoding_dsplen(encoding, s));
|
||||
return pg_encoding_dsplen(encoding, s);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1115,7 +1115,7 @@ PQenv2encoding(void)
|
||||
str = getenv("PGCLIENTENCODING");
|
||||
if (str && *str != '\0')
|
||||
encoding = pg_char_to_encoding(str);
|
||||
return (encoding);
|
||||
return encoding;
|
||||
}
|
||||
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol2.c,v 1.20 2005/11/22 18:17:33 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol2.c,v 1.21 2006/01/11 08:43:13 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1180,11 +1180,11 @@ pqEndcopy2(PGconn *conn)
|
||||
* and the flush fails
|
||||
*/
|
||||
if (pqFlush(conn) && pqIsnonblocking(conn))
|
||||
return (1);
|
||||
return 1;
|
||||
|
||||
/* non blocking connections may have to abort at this point. */
|
||||
if (pqIsnonblocking(conn) && PQisBusy(conn))
|
||||
return (1);
|
||||
return 1;
|
||||
|
||||
/* Return to active duty */
|
||||
conn->asyncStatus = PGASYNC_BUSY;
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.23 2005/11/22 18:17:33 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.24 2006/01/11 08:43:13 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1158,7 +1158,7 @@ pqEndcopy3(PGconn *conn)
|
||||
* and the flush fails
|
||||
*/
|
||||
if (pqFlush(conn) && pqIsnonblocking(conn))
|
||||
return (1);
|
||||
return 1;
|
||||
|
||||
/* Return to active duty */
|
||||
conn->asyncStatus = PGASYNC_BUSY;
|
||||
@ -1172,7 +1172,7 @@ pqEndcopy3(PGconn *conn)
|
||||
* with the CopyDone; are there corner cases where that doesn't happen?)
|
||||
*/
|
||||
if (pqIsnonblocking(conn) && PQisBusy(conn))
|
||||
return (1);
|
||||
return 1;
|
||||
|
||||
/* Wait for the completion response */
|
||||
result = PQgetResult(conn);
|
||||
|
@ -102,6 +102,6 @@ c_overpaid(HeapTupleHeader t, /* the current instance of EMP */
|
||||
|
||||
salary = DatumGetInt32(GetAttributeByName(t, "salary", &isnull));
|
||||
if (isnull)
|
||||
return (false);
|
||||
return false;
|
||||
return salary > limit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user