| 619 | } |
| 620 | |
| 621 | UCHAR* SQLDAMetadataLauncher::getBuffer() |
| 622 | { |
| 623 | if (metadata) |
| 624 | { |
| 625 | // ASF: It's important to call getMessageLength before check speedHackEnabled. |
| 626 | unsigned length = metadata->getMessageLength(NULL); |
| 627 | |
| 628 | if (metadata->speedHackEnabled) |
| 629 | return reinterpret_cast<UCHAR*>(metadata->sqlda->sqlvar[0].sqldata); |
| 630 | |
| 631 | return buffer.getBuffer(length, false); |
| 632 | } |
| 633 | else |
| 634 | { |
| 635 | buffer.clear(); |
| 636 | return NULL; |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | IMetadataBuilder* SQLDAMetadata::getBuilder(CheckStatusWrapper* status) |
| 641 | { |
no test coverage detected