1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-23 03:21:12 +03:00

Update libpq to store an error message in PGresult, per pgsq-interfaces discussion of 21-Sep.

This commit is contained in:
Tom Lane
1998-10-01 01:40:26 +00:00
parent 502769d0de
commit 6428074e27
6 changed files with 205 additions and 79 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.16 1998/09/01 04:40:07 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.17 1998/10/01 01:40:22 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -76,7 +76,10 @@ lo_open(PGconn *conn, Oid lobjId, int mode)
return fd;
}
else
{
PQclear(res);
return -1;
}
}
/*
@ -111,7 +114,10 @@ lo_close(PGconn *conn, int fd)
return retval;
}
else
{
PQclear(res);
return -1;
}
}
/*
@ -151,7 +157,10 @@ lo_read(PGconn *conn, int fd, char *buf, int len)
return result_len;
}
else
{
PQclear(res);
return -1;
}
}
/*
@ -192,7 +201,10 @@ lo_write(PGconn *conn, int fd, char *buf, int len)
return retval;
}
else
{
PQclear(res);
return -1;
}
}
/*
@ -236,7 +248,10 @@ lo_lseek(PGconn *conn, int fd, int offset, int whence)
return retval;
}
else
{
PQclear(res);
return -1;
}
}
/*
@ -273,7 +288,10 @@ lo_creat(PGconn *conn, int mode)
return (Oid) retval;
}
else
{
PQclear(res);
return InvalidOid;
}
}
@ -309,7 +327,10 @@ lo_tell(PGconn *conn, int fd)
return retval;
}
else
{
PQclear(res);
return -1;
}
}
/*
@ -344,7 +365,10 @@ lo_unlink(PGconn *conn, Oid lobjId)
return retval;
}
else
{
PQclear(res);
return -1;
}
}
/*