Skip to content
Snippets Groups Projects
Commit 3595b333 authored by Francesco Chemolli's avatar Francesco Chemolli Committed by Henrik (Grubba) Grubbström
Browse files

Updated to Postgres 1.0.1

Rev: src/modules/Postgres/ChangeLog:1.3
Rev: src/modules/Postgres/postgres.c:1.4
Rev: src/modules/Postgres/version.h:1.2
parent 85125704
No related branches found
No related tags found
No related merge requests found
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> Tue Nov 25 13:42:25 1997 Francesco Chemolli <kinkie@ai-chan>
* version.h: Released version 1.0 (hopefully) * version.h: Released version 1.0 (hopefully)
......
...@@ -62,7 +62,7 @@ static void pgdebug (char * a, ...) {} ...@@ -62,7 +62,7 @@ static void pgdebug (char * a, ...) {}
struct program * postgres_program; 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) #define THIS ((struct pgres_object_data *) fp->current_storage)
...@@ -159,7 +159,7 @@ static void f_create (INT32 args) ...@@ -159,7 +159,7 @@ static void f_create (INT32 args)
PQfinish(conn); PQfinish(conn);
PQ_UNLOCK(); PQ_UNLOCK();
THREADS_DISALLOW(); 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; THIS->dblink=conn;
if (!THIS->dblink) if (!THIS->dblink)
...@@ -175,7 +175,7 @@ static void f_select_db (INT32 args) ...@@ -175,7 +175,7 @@ static void f_select_db (INT32 args)
check_all_args("Postgres->select_db",args,BIT_STRING,0); check_all_args("Postgres->select_db",args,BIT_STRING,0);
if (!THIS->dblink) 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"); "database already?\n");
conn=THIS->dblink; conn=THIS->dblink;
THREADS_ALLOW(); THREADS_ALLOW();
......
/* /*
* $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 * This file is provided for CVS's sake, and to define a simple string to be
* used as the module's release version * used as the module's release version
*/ */
#define PGSQL_VERSION "Postgres/1.0" #define PGSQL_VERSION "Postgres/1.0.1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment