--- parser3/src/sql/pgsql/Attic/parser3pgsql.C 2001/08/01 09:33:54 1.9 +++ parser3/src/sql/pgsql/Attic/parser3pgsql.C 2001/09/05 08:57:43 1.13 @@ -7,20 +7,23 @@ 2001.07.30 using PgSQL 7.1.2 */ -static const char *RCSId="$Id: parser3pgsql.C,v 1.9 2001/08/01 09:33:54 parser Exp $"; +static const char *RCSId="$Id: parser3pgsql.C,v 1.13 2001/09/05 08:57:43 parser Exp $"; #include "config_includes.h" #include "pa_sql_driver.h" #include -#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_FUNC_NAME() { return new PgSQL_Driver(); } \ No newline at end of file