Skip to content
Snippets Groups Projects
Commit b9797728 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now checks for existance of Postgres.postgres.

Rev: lib/modules/Sql.pmod/postgres.pike:1.5
parent 8b307eb1
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,12 @@
* This is part of the Postgres module for Pike.
* (C) 1997 Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it>
*
* $Id: postgres.pike,v 1.4 1998/08/25 13:11:21 grubba Exp $
* $Id: postgres.pike,v 1.5 1998/10/17 02:54:58 grubba Exp $
*
*/
#if constant(Postgres.postgres)
#define ERROR(X) throw (({X,backtrace()}))
inherit Postgres.postgres: mo;
......@@ -122,3 +124,9 @@ mapping(string:array(mixed)) list_fields (string table, void|string wild) {
}
return ret;
}
#else /* !constant(Postgres.postgres) */
void create()
{
destruct();
}
#endif /* constant(Postgres.postgres) */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment