--- parser3/src/sql/pgsql/Attic/parser3pgsql.C 2001/08/01 09:49:18 1.10 +++ parser3/src/sql/pgsql/Attic/parser3pgsql.C 2001/09/05 09:22:45 1.14 @@ -7,7 +7,7 @@ 2001.07.30 using PgSQL 7.1.2 */ -static const char *RCSId="$Id: parser3pgsql.C,v 1.10 2001/08/01 09:49:18 parser Exp $"; +static const char *RCSId="$Id: parser3pgsql.C,v 1.14 2001/09/05 09:22:45 parser Exp $"; #include "config_includes.h" @@ -16,11 +16,14 @@ static const char *RCSId="$Id: parser3pg #include #include -// OIDOID from #include +// OIDOID from catalog/pg_type.h #define OIDOID 26 // LO_BUFSIZE from interfaces\libpq\fe-lobj.c = 8192 (0x2000) // actually writing chunks of that size failed, reduced it twice #define LO_BUFSIZE 0x1000 +// from postgres_ext.h +#define InvalidOid ((Oid) 0) + #include "ltdl.h" @@ -93,7 +96,7 @@ public: *(PGconn **)connection=conn; begin_transaction(services, conn); } - void disconnect(SQL_Driver_services&, void *connection) { + void disconnect(void *connection) { PQfinish((PGconn *)connection); } void commit(SQL_Driver_services& services, void *connection) { @@ -420,6 +423,6 @@ private: // conn client library funcs li }; -extern "C" SQL_Driver *create() { +extern "C" SQL_Driver *SQL_DRIVER_CREATE() { return new PgSQL_Driver(); } \ No newline at end of file