static method
| 88 | |
| 89 | // static method |
| 90 | Jrd::Attachment* Jrd::Attachment::create(Database* dbb, JProvider* provider) |
| 91 | { |
| 92 | MemoryPool* const pool = dbb->createPool(); |
| 93 | |
| 94 | try |
| 95 | { |
| 96 | Attachment* const attachment = FB_NEW_POOL(*pool) Attachment(pool, dbb, provider); |
| 97 | pool->setStatsGroup(attachment->att_memory_stats); |
| 98 | return attachment; |
| 99 | } |
| 100 | catch (const Firebird::Exception&) |
| 101 | { |
| 102 | dbb->deletePool(pool); |
| 103 | throw; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | |
| 108 | // static method |
nothing calls this directly
no test coverage detected