|
|
| version 1.69.2.8, 2003/01/31 12:10:47 | version 1.69.2.9, 2003/01/31 12:34:37 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: sql driver manager implementation. | Parser: sql driver manager implementation. |
| Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 129 SQL_ConnectionPtr SQL_Driver_manager::ge | Line 129 SQL_ConnectionPtr SQL_Driver_manager::ge |
| library, | library, |
| "prepare to dynamic loading failed, %s", lt_dlerror()); | "prepare to dynamic loading failed, %s", lt_dlerror()); |
| const char *filename=library->cstr(String::UL_FILE_SPEC); | const char* filename=library->cstr(String::UL_FILE_SPEC); |
| lt_dlhandle handle=lt_dlopen(filename); | lt_dlhandle handle=lt_dlopen(filename); |
| if (!handle) | if (!handle) |
| throw Exception(0, | throw Exception(0, |
| Line 158 SQL_ConnectionPtr SQL_Driver_manager::ge | Line 158 SQL_ConnectionPtr SQL_Driver_manager::ge |
| CharPtr dlopen_file_spec_cstr= | CharPtr dlopen_file_spec_cstr= |
| dlopen_file_spec && dlopen_file_spec->size()? | dlopen_file_spec && dlopen_file_spec->size()? |
| dlopen_file_spec->cstr(String::UL_AS_IS):CharPtrZero; | dlopen_file_spec->cstr(String::UL_AS_IS):CharPtrZero; |
| if(const char *error=driver->initialize( | if(const char* error=driver->initialize( |
| dlopen_file_spec_cstr)) | dlopen_file_spec_cstr)) |
| throw Exception(0, | throw Exception(0, |
| library, | library, |
| Line 256 static void add_connection_to_status_cac | Line 256 static void add_connection_to_status_cac |
| row+=&url_without_login(pool, connection.get_url()); | row+=&url_without_login(pool, connection.get_url()); |
| // time | // time |
| time_t time_used=connection.get_time_used(); | time_t time_used=connection.get_time_used(); |
| const char *unsafe_time_cstr=ctime(&time_used); | const char* unsafe_time_cstr=ctime(&time_used); |
| int time_buf_size=strlen(unsafe_time_cstr); | int time_buf_size=strlen(unsafe_time_cstr); |
| char *safe_time_buf=(char *)pool.malloc(time_buf_size); | char *safe_time_buf=(char *)pool.malloc(time_buf_size); |
| memcpy(safe_time_buf, unsafe_time_cstr, time_buf_size); | memcpy(safe_time_buf, unsafe_time_cstr, time_buf_size); |