|
|
| version 1.10, 2001/05/07 13:30:04 | version 1.11, 2001/05/16 08:10:22 |
|---|---|
| Line 78 SQL_Connection& SQL_Driver_manager::get_ | Line 78 SQL_Connection& SQL_Driver_manager::get_ |
| &request_owned_url, | &request_owned_url, |
| "no protocol specified"); // NOTE: not THROW, but PTHROW | "no protocol specified"); // NOTE: not THROW, but PTHROW |
| // make url C-string on global pool | // make global_owned_url C-string on global pool |
| char *url_cstr=(char *)malloc(MAX_STRING); | char *url_cstr=(char *)malloc(MAX_STRING); |
| strncpy(url_cstr, request_owned_url.cstr(String::UL_AS_IS), MAX_STRING); | strncpy(url_cstr, request_owned_url.cstr(String::UL_AS_IS), MAX_STRING); |
| // make url string on global pool | // make global_owned_url string on global pool |
| String& url=*new(this->pool()) String(this->pool(), url_cstr); | String& global_owned_url=*new(this->pool()) String(this->pool(), url_cstr); |
| char *protocol_cstr=lsplit(&url_cstr, ':'); | char *protocol_cstr=lsplit(&url_cstr, ':'); |
| String& protocol=*new(this->pool()) String(this->pool(), protocol_cstr); | String& protocol=*new(this->pool()) String(this->pool(), protocol_cstr); |
| Line 108 SQL_Connection& SQL_Driver_manager::get_ | Line 108 SQL_Connection& SQL_Driver_manager::get_ |
| "client library column for protocol '%s' is empty", protocol_cstr); | "client library column for protocol '%s' is empty", protocol_cstr); |
| } else | } else |
| PTHROW(0, 0, | PTHROW(0, 0, |
| &url, | &request_owned_url, |
| "undefined protocol '%s'", protocol_cstr); | "undefined protocol '%s'", protocol_cstr); |
| const char *filename=library->cstr(String::UL_FILE_NAME); | const char *filename=library->cstr(String::UL_FILE_NAME); |
| Line 151 SQL_Connection& SQL_Driver_manager::get_ | Line 151 SQL_Connection& SQL_Driver_manager::get_ |
| // services associated with request | // services associated with request |
| SQL_Driver_services_impl& services= | SQL_Driver_services_impl& services= |
| *new(pool) SQL_Driver_services_impl(pool, url); | *new(pool) SQL_Driver_services_impl(pool, request_owned_url); |
| // allocate in global pool | // allocate in global pool |
| // associate with services[request], deassociates at close | // associate with services[request], deassociates at close |
| SQL_Connection& result= | SQL_Connection& result= |
| *new(this->pool()) SQL_Connection(this->pool(), | *new(this->pool()) SQL_Connection(this->pool(), |
| url, *driver, services, url_cstr); | global_owned_url, *driver, services, url_cstr); |
| return result; | return result; |
| } | } |