--- parser3/src/main/pa_sql_driver_manager.C 2003/01/31 12:34:37 1.69.2.9 +++ parser3/src/main/pa_sql_driver_manager.C 2003/02/14 17:33:45 1.69.2.12 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_SQL_DRIVER_MANAGER_C="$Date: 2003/01/31 12:34:37 $"; +static const char* IDENT_SQL_DRIVER_MANAGER_C="$Date: 2003/02/14 17:33:45 $"; #include "pa_sql_driver_manager.h" #include "ltdl.h" @@ -13,7 +13,6 @@ static const char* IDENT_SQL_DRIVER_MANA #include "pa_sql_connection.h" #include "pa_exception.h" #include "pa_common.h" -#include "pa_value_includes.h" #include "pa_vhash.h" #include "pa_vtable.h" @@ -157,13 +156,13 @@ SQL_ConnectionPtr SQL_Driver_manager::ge // initialise by connecting to sql client dynamic link library CharPtr dlopen_file_spec_cstr= dlopen_file_spec && dlopen_file_spec->size()? - dlopen_file_spec->cstr(String::UL_AS_IS):CharPtrZero; + dlopen_file_spec->cstr(String::UL_AS_IS):CharPtr(0); if(const char* error=driver->initialize( dlopen_file_spec_cstr)) throw Exception(0, library, "driver failed to initialize client library '%s', %s", - dlopen_file_spec_cstr?dlopen_file_spec_cstr:"unspecifed", + dlopen_file_spec_cstr?dlopen_file_spec_cstr.get():"unspecifed", error); // cache it @@ -218,7 +217,7 @@ SQL_ConnectionPtr SQL_Driver_manager::ge return result; } - return 0; + return SQL_ConnectionPtr(0); } void SQL_Driver_manager::put_connection_to_cache(