| 355 | } |
| 356 | |
| 357 | Connection* Provider::createConnection(thread_db* tdbb, |
| 358 | const PathName& dbName, ClumpletReader& dpb, TraScope tra_scope) |
| 359 | { |
| 360 | Connection* conn = doCreateConnection(); |
| 361 | conn->setup(dbName, dpb); |
| 362 | if (!conn->isCurrent()) |
| 363 | conn->setCallbackRedirect(tdbb->getAttachment()->att_crypt_callback); |
| 364 | |
| 365 | try |
| 366 | { |
| 367 | conn->attach(tdbb); |
| 368 | } |
| 369 | catch (...) |
| 370 | { |
| 371 | Connection::deleteConnection(tdbb, conn); |
| 372 | throw; |
| 373 | } |
| 374 | |
| 375 | bindConnection(tdbb, conn); |
| 376 | return conn; |
| 377 | } |
| 378 | |
| 379 | void Provider::bindConnection(thread_db* tdbb, Connection* conn) |
| 380 | { |
no test coverage detected