--- parser3/src/include/pa_sql_connection.h 2003/01/27 16:00:41 1.30.2.1 +++ parser3/src/include/pa_sql_connection.h 2003/01/27 16:19:11 1.30.2.2 @@ -8,7 +8,7 @@ #ifndef PA_SQL_CONNECTION_H #define PA_SQL_CONNECTION_H -static const char* IDENT_SQL_CONNECTION_H="$Date: 2003/01/27 16:00:41 $"; +static const char* IDENT_SQL_CONNECTION_H="$Date: 2003/01/27 16:19:11 $"; #include "pa_pool.h" #include "pa_sql_driver.h" @@ -32,21 +32,21 @@ class SQL_Connection: public PA_Object { public: - SQL_Connection(ConstStringPtr aurl, SQL_Driver& adriver) : Pooled(pool), + SQL_Connection(ConstStringPtr aurl, SQL_Driver& adriver): furl(aurl), fdriver(adriver), fconnection(0), - time_used(0), used(0), + time_used(0), marked_to_rollback(false) { } - const String& get_url() { return furl; } + ConstStringPtr get_url() { return furl; } void set_services(SQL_Driver_services *aservices) { fservices=aservices; } bool expired(time_t older_dies) { - return !used && time_usedclose_connection(furl, *this); + SQL_driver_manager.close_connection(furl, *this); } private: - const String& furl; + ConstStringPtr furl; SQL_Driver& fdriver; SQL_Driver_services *fservices; void *fconnection;