--- parser3/src/include/Attic/pa_db_table.h 2001/10/26 13:48:18 1.3 +++ parser3/src/include/Attic/pa_db_table.h 2001/11/05 11:46:24 1.8 @@ -2,9 +2,9 @@ Parser: sql db decl. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_db_table.h,v 1.3 2001/10/26 13:48:18 paf Exp $ + $Id: pa_db_table.h,v 1.8 2001/11/05 11:46:24 paf Exp $ */ #ifndef PA_DB_TABLE_H @@ -14,8 +14,11 @@ #include "pa_globals.h" #include "pa_pool.h" -#ifdef HAVE_DB_H +#ifdef DB2 # include +# if DB_VERSION_MAJOR != 2 +# error Parser needs DB 2.x.x version of libdb to compile +# endif #endif // defines @@ -34,9 +37,9 @@ class DB_Cursor; /// DB table. handy wrapper around low level calls class DB_Table : public Pooled { - friend DB_Table_ptr; - friend DB_Transaction; - friend DB_Cursor; + friend class DB_Table_ptr; + friend class DB_Transaction; + friend class DB_Cursor; public: DB_Table(Pool& apool, const String& afile_name, DB_Connection& aconnection); @@ -47,6 +50,8 @@ public: bool expired(time_t older_dies) { return !used && time_used