diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-11-16 01:06:27 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-11-16 01:08:50 +0000 |
| commit | a88d7ab424c9425fde285d80ab273d9a1fc3bd60 (patch) | |
| tree | f2f7fd151c2723bc840dd5aad3f6d9659b3bf281 /psycopg/connection_int.c | |
| parent | 73265e7ece3ca5e6eba1ec8b4234e5884905aafc (diff) | |
| download | psycopg2-a88d7ab424c9425fde285d80ab273d9a1fc3bd60.tar.gz | |
Dropped support for protocol 2.
Dropped both the setup constant allowing conditional compiling and the
code specific to V2 protocol (mostly COPY and error handling).
Diffstat (limited to 'psycopg/connection_int.c')
| -rw-r--r-- | psycopg/connection_int.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index e335c39..f98839b 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -266,13 +266,7 @@ int conn_get_protocol_version(PGconn *pgconn) { int ret; - -#ifdef HAVE_PQPROTOCOL3 ret = PQprotocolVersion(pgconn); -#else - ret = 2; -#endif - Dprintf("conn_connect: using protocol %d", ret); return ret; } |
