diff --git a/src/modules/Postgres/ChangeLog b/src/modules/Postgres/ChangeLog index 9188a0fba49f80121828966027da57ad6efedc77..f9d6a3ef741ab2affdcfae01b2936bb5aa840397 100644 --- a/src/modules/Postgres/ChangeLog +++ b/src/modules/Postgres/ChangeLog @@ -1,3 +1,26 @@ +Mon Dec 15 14:33:50 1997 Francesco Chemolli <kinkie@ai-chan> + + * postgres.c: + Changed error message upon failed connection to be more verbose, since + on errors in create() the error() function is not abailible. + +Tue Nov 25 16:12:37 1997 Francesco Chemolli <kinkie@ai-chan> + + * Attic/quickmanual.txt: Removed, out of date. + + * ChangeLog: Updated. + + * version.h: Released version 1.0 (hopefully) + + * doc/Attic/raw_postgres, doc/sql_postgres, doc/sql_postgres_result, doc/Attic/postgres, doc/Attic/postgres_result, doc/postgres_postgres, doc/postgres_postgres_result: + Made some order, to make the documentation better understandable and + complete. + + * doc/Attic/postgres, doc/Attic/postgres_result, doc/Attic/raw_postgres: + Fixed and completed the documentation. + + * lib/postgres.pike: Fixed a typo. + Tue Nov 25 13:42:25 1997 Francesco Chemolli <kinkie@ai-chan> * version.h: Released version 1.0 (hopefully) diff --git a/src/modules/Postgres/postgres.c b/src/modules/Postgres/postgres.c index 261c960242ca946eee48a8b0cff25762b73bc6f9..d1bfa57dc0f83109a3a7454d28d2f004e179df9f 100644 --- a/src/modules/Postgres/postgres.c +++ b/src/modules/Postgres/postgres.c @@ -62,7 +62,7 @@ static void pgdebug (char * a, ...) {} struct program * postgres_program; -RCSID("$Id: postgres.c,v 1.3 1997/12/07 21:49:14 grubba Exp $"); +RCSID("$Id: postgres.c,v 1.4 1997/12/16 15:55:21 grubba Exp $"); #define THIS ((struct pgres_object_data *) fp->current_storage) @@ -159,7 +159,7 @@ static void f_create (INT32 args) PQfinish(conn); PQ_UNLOCK(); THREADS_DISALLOW(); - error("Could not connect to database.\n"); + error("Could not connect to database. Reason: \"%s\".\n",THIS->last_error->str); } THIS->dblink=conn; if (!THIS->dblink) @@ -175,7 +175,7 @@ static void f_select_db (INT32 args) check_all_args("Postgres->select_db",args,BIT_STRING,0); if (!THIS->dblink) - error ("Internal error. How can you possibly not be linked to a " + error ("Driver error. How can you possibly not be linked to a " "database already?\n"); conn=THIS->dblink; THREADS_ALLOW(); diff --git a/src/modules/Postgres/version.h b/src/modules/Postgres/version.h index ea9649d07094997ddd37e0bb0c5f6ea948e97206..08f050aa534ed5e0b4f1df26343c17045946c1d3 100644 --- a/src/modules/Postgres/version.h +++ b/src/modules/Postgres/version.h @@ -1,8 +1,8 @@ /* - * $Id: version.h,v 1.1 1997/11/25 20:58:00 grubba Exp $ + * $Id: version.h,v 1.2 1997/12/16 15:55:21 grubba Exp $ * * This file is provided for CVS's sake, and to define a simple string to be * used as the module's release version */ -#define PGSQL_VERSION "Postgres/1.0" +#define PGSQL_VERSION "Postgres/1.0.1"