--- parser3/src/main/pa_sql_driver_manager.C 2003/01/21 15:51:15 1.69 +++ parser3/src/main/pa_sql_driver_manager.C 2003/01/27 16:00:42 1.69.2.1 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_SQL_DRIVER_MANAGER_C="$Date: 2003/01/21 15:51:15 $"; +static const char* IDENT_SQL_DRIVER_MANAGER_C="$Date: 2003/01/27 16:00:42 $"; #include "pa_sql_driver_manager.h" #include "ltdl.h" @@ -19,7 +19,7 @@ static const char* IDENT_SQL_DRIVER_MANA // globals -SQL_Driver_manager *SQL_driver_manager; +SQL_Driver_manager SQL_driver_manager; // consts @@ -104,10 +104,8 @@ static void expire_connections(const Has // SQL_Driver_manager -SQL_Driver_manager::SQL_Driver_manager(Pool& apool) : Cache_manager(apool), - driver_cache(apool), - connection_cache(apool), - prev_expiration_pass_time(0) { +SQL_Driver_manager::SQL_Driver_manager(): + prev_expiration_pass_time(0) { } SQL_Driver_manager::~SQL_Driver_manager() { @@ -116,7 +114,7 @@ SQL_Driver_manager::~SQL_Driver_manager( } /// @param request_url protocol://[driver-dependent] -SQL_Connection_ptr SQL_Driver_manager::get_connection(const String& request_url, +SQL_ConnectionPtr SQL_Driver_manager::get_connection(const String& request_url, const String& request_origin, Table *protocol2driver_and_client) { Pool& pool=request_origin.pool(); // request pool @@ -245,7 +243,7 @@ SQL_Connection_ptr SQL_Driver_manager::g if(!connection->connected()) connection->connect(request_url_cstr); // return autoclosing object for it - return SQL_Connection_ptr(connection); + return SQL_ConnectionPtr(connection); } void SQL_Driver_manager::close_connection(const String& url,