| 645 | } |
| 646 | |
| 647 | int SQLDAMetadata::detach() |
| 648 | { |
| 649 | // This code can lead to unnecessary work but not to segfault |
| 650 | if (refCounter.value() > 1) |
| 651 | { |
| 652 | if (!offsets) // in current codebase this is never true because offsets are allocated on buffer size calculation |
| 653 | assign(); |
| 654 | } |
| 655 | sqlda = NULL; |
| 656 | speedHackEnabled = false; |
| 657 | |
| 658 | return release(); |
| 659 | } |
| 660 | |
| 661 | |
| 662 | GlobalPtr<RWLock> handleMappingLock; |
no test coverage detected