projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b9936
)
Remove exit_nicely function, along with it's exit(1) call, per Marko Ristola.
author
Dave Page
<dpage@pgadmin.org>
Wed, 20 Jul 2005 11:54:36 +0000
(11:54 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Wed, 20 Jul 2005 11:54:36 +0000
(11:54 +0000)
connection.c
patch
|
blob
|
blame
|
history
diff --git
a/connection.c
b/connection.c
index 0e6489bf6ca321dd5248bd019fae087c0595efdd..595f100932c3ecb8ebef33c03e3c978c47cd4843 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-2561,13
+2561,6
@@
CC_cleanup(ConnectionClass *self)
}
-static void
-exit_nicely(PGconn *conn)
-{
- PQfinish(conn);
- exit(1);
-}
-
char
CC_connect(ConnectionClass *self, char password_req, char *salt_para)
{
@@
-3121,7
+3114,7
@@
LIBPQ_connect(ConnectionClass *self)
{
CC_set_error(self,CONNECTION_COULD_NOT_ESTABLISH,PQerrorMessage(self->pgconn));
mylog("could not establish connection to the database %s \n",PQerrorMessage(self->pgconn));
-
exit_nicely
(self->pgconn);
+
PQfinish
(self->pgconn);
free(conninfo);
return 0;
}