diff options
Diffstat (limited to 'psycopg/connection_int.c')
| -rw-r--r-- | psycopg/connection_int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index dd80576..e564cfc 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -374,8 +374,6 @@ conn_sync_connect(connectionObject *self) Dprintf("conn_connect: using protocol %d", self->protocol); - self->server_version = (int)PQserverVersion(pgconn); - /* if the connection is green, wait to finish connection */ if (green) { wait_rv = psyco_wait(self); @@ -386,6 +384,8 @@ conn_sync_connect(connectionObject *self) } } + self->server_version = (int)PQserverVersion(pgconn); + /* From here the connection is considered ready: with the new status, * poll() will use PQisBusy instead of PQconnectPoll. */ |
