diff options
author | Bruce Momjian | 2001-02-10 06:57:53 +0000 |
---|---|---|
committer | Bruce Momjian | 2001-02-10 06:57:53 +0000 |
commit | 895a57bdd258b543160d32d68f4cbcf9c7eb39ac (patch) | |
tree | 5a0a159192dcf66e8166fc5d759337f62e74cf08 /src/interfaces/odbc/connection.h | |
parent | d2331b4ebd289088b9436012f3bd185b9a140b2b (diff) |
Cleanup
Diffstat (limited to 'src/interfaces/odbc/connection.h')
-rw-r--r-- | src/interfaces/odbc/connection.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/interfaces/odbc/connection.h b/src/interfaces/odbc/connection.h index 8222d985180..9169583e457 100644 --- a/src/interfaces/odbc/connection.h +++ b/src/interfaces/odbc/connection.h @@ -106,10 +106,8 @@ typedef unsigned int ProtocolVersion; #define PG_PROTOCOL(major, minor) (((major) << 16) | (minor)) #define PG_PROTOCOL_LATEST PG_PROTOCOL(2, 0) -#define PG_PROTOCOL_63 PG_PROTOCOL(1, 0) -#define PG_PROTOCOL_62 PG_PROTOCOL(0, 0) -/* This startup packet is to support latest Postgres protocol (6.4, 6.3) */ +/* This startup packet is to support latest Postgres protocol */ typedef struct _StartupPacket { ProtocolVersion protoVersion; @@ -121,18 +119,6 @@ typedef struct _StartupPacket } StartupPacket; -/* This startup packet is to support pre-Postgres 6.3 protocol */ -typedef struct _StartupPacket6_2 -{ - unsigned int authtype; - char database[PATH_SIZE]; - char user[NAMEDATALEN]; - char options[ARGV_SIZE]; - char execfile[ARGV_SIZE]; - char tty[PATH_SIZE]; -} StartupPacket6_2; - - /* Structure to hold all the connection attributes for a specific connection (used for both registry and file, DSN and DRIVER) */ @@ -157,12 +143,6 @@ typedef struct { char focus_password; } ConnInfo; -/* Macro to determine is the connection using 6.2 protocol? */ -#define PROTOCOL_62(conninfo_) (strncmp((conninfo_)->protocol, PG62, strlen(PG62)) == 0) - -/* Macro to determine is the connection using 6.3 protocol? */ -#define PROTOCOL_63(conninfo_) (strncmp((conninfo_)->protocol, PG63, strlen(PG63)) == 0) - /* * Macros to compare the server's version with a specified version * 1st parameter: pointer to a ConnectionClass object |