aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-int.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-03-05 01:53:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-03-05 01:53:59 +0000
commit44611f6e6d2cd11ac2c6dc1f41c13a98ec633f08 (patch)
treea6386e8e5b42fba514d25f786c6b1a5e4e93764a /src/interfaces/libpq/libpq-int.h
parentd91acf840136f751898378c0ff41d317e993d1a6 (diff)
downloadpostgresql-44611f6e6d2cd11ac2c6dc1f41c13a98ec633f08.tar.gz
postgresql-44611f6e6d2cd11ac2c6dc1f41c13a98ec633f08.zip
libpq's query to get the OIDs of large-object support functions was not
schema-safe. Make it so, and improve the internal support for knowledge of server version.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r--src/interfaces/libpq/libpq-int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h
index 97cd55eaa8a..f2acf2af20a 100644
--- a/src/interfaces/libpq/libpq-int.h
+++ b/src/interfaces/libpq/libpq-int.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.84 2004/01/09 02:02:43 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.85 2004/03/05 01:53:59 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -280,7 +280,7 @@ struct pg_conn
SockAddr laddr; /* Local address */
SockAddr raddr; /* Remote address */
ProtocolVersion pversion; /* FE/BE protocol version in use */
- char sversion[8]; /* The first few bytes of server version */
+ int sversion; /* server version, e.g. 70401 for 7.4.1 */
/* Transient state needed while establishing connection */
struct addrinfo *addrlist; /* list of possible backend addresses */