mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
From: Michael Meskes <meskes@topsystem.de>
+ Tue May 19 11:49:34 CEST 1998 + + - Tested (and fixed) 'set connection' + - Fixed string notation in C + - Set version to 2.3.2
This commit is contained in:
@@ -804,8 +804,10 @@ bool
|
||||
ECPGsetconn(int lineno, const char *connection_name)
|
||||
{
|
||||
struct connection *con = all_connections;
|
||||
|
||||
ECPGlog("ECPGsetconn: setting actual connection to %s\n", connection_name);
|
||||
|
||||
for (; con && strcmp(connection_name, con->name) == 0; con=con->next);
|
||||
for (; con && strcmp(connection_name, con->name) != 0; con=con->next);
|
||||
if (con)
|
||||
{
|
||||
actual_connection = con;
|
||||
@@ -883,7 +885,7 @@ ECPGdisconnect(int lineno, const char *connection_name)
|
||||
}
|
||||
else
|
||||
{
|
||||
for (con = all_connections; con && strcmp(con->name, connection_name);con = con->next);
|
||||
for (con = all_connections; con && strcmp(con->name, connection_name) != 0;con = con->next);
|
||||
if (con == NULL)
|
||||
{
|
||||
ECPGlog("disconnect: not connected to connection %s\n", connection_name);
|
||||
|
||||
Reference in New Issue
Block a user