MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setParamsFromDPB

Method setParamsFromDPB

src/remote/client/interface.cpp:2479–2506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2477
2478
2479void Attachment::setParamsFromDPB(ClumpletReader& dpb)
2480{
2481 dpb.rewind();
2482 for (; !dpb.isEof(); dpb.moveNext())
2483 {
2484 const UCHAR item = dpb.getClumpTag();
2485 switch (item)
2486 {
2487 case isc_dpb_max_blob_cache_size:
2488 case isc_dpb_max_inline_blob_size:
2489 if (rdb->rdb_port->port_protocol >= PROTOCOL_INLINE_BLOB)
2490 {
2491 SLONG val = dpb.getInt();
2492 if (val < 0)
2493 val = 0;
2494
2495 if (item == isc_dpb_max_blob_cache_size)
2496 rdb->rdb_blob_cache_size = val;
2497 else
2498 rdb->rdb_inline_blob_size = MIN(val, MAX_INLINE_BLOB_SIZE);
2499 }
2500 break;
2501
2502 default:
2503 break;
2504 }
2505 }
2506}
2507
2508
2509unsigned Attachment::getMaxBlobCacheSize(CheckStatusWrapper* status)

Callers 1

attachMethod · 0.80

Calls 5

getClumpTagMethod · 0.80
rewindMethod · 0.45
isEofMethod · 0.45
moveNextMethod · 0.45
getIntMethod · 0.45

Tested by

no test coverage detected