From e764c572f1fb14349432159e58368a572747ca9e Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Wed, 17 Apr 2013 14:18:33 +0200 Subject: [PATCH] Debug tty is no longer used and PQtty has been obsoleted. Since it's a debug feature, remove completely instead of making a configure test. --- src/modules/Postgres/postgres.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/Postgres/postgres.c b/src/modules/Postgres/postgres.c index 01e2f8f762..e80b865d81 100644 --- a/src/modules/Postgres/postgres.c +++ b/src/modules/Postgres/postgres.c @@ -328,7 +328,7 @@ static void f_create (INT32 args) static void f_select_db (INT32 args) { - char *host, *port, *options, *tty, *db; + char *host, *port, *options, *db; PGconn * conn, *newconn; PQ_FETCH(); @@ -352,7 +352,7 @@ static void f_select_db (INT32 args) host=PQhost(conn); port=PQport(conn); options=PQoptions(conn); - tty=PQtty(conn); + /* This could be really done calling f_create, but it's more efficient this * way */ /* using newconn is necessary or otherwise the datastructures I use @@ -360,7 +360,7 @@ static void f_select_db (INT32 args) * situations (i.e. if the temporary use of _one_ more filedescriptor * is not possible. */ - newconn=PQsetdb(host,port,options,tty,db); + newconn=PQsetdb(host,port,options,NULL,db); PQfinish(conn); conn=newconn; PQ_UNLOCK(); -- GitLab