|
|
| version 1.4, 2001/04/05 11:01:57 | version 1.6, 2001/04/05 13:19:43 |
|---|---|
| Line 62 SQL_Connection& SQL_Driver_manager::get_ | Line 62 SQL_Connection& SQL_Driver_manager::get_ |
| if(!protocol2library) | if(!protocol2library) |
| PTHROW(0, 0, | PTHROW(0, 0, |
| &url, | &url, |
| "SQL:drivers table must be defined"); | "$SQL:drivers table must be defined"); |
| // first trying to get cached connection | // first trying to get cached connection |
| if(SQL_Connection *result=get_connection_from_cache(url)) | if(SQL_Connection *result=get_connection_from_cache(url)) |
| return *result; | if(result->ping()) |
| return *result; | |
| else | |
| result->disconnect(); // kill unpingabe=dead connection | |
| // no cached connection | // no cached connection |
| int pos=url.pos("://", 3); | int pos=url.pos("://", 3); |