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

Method getInfo

src/remote/client/interface.cpp:1305–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1303
1304
1305void Blob::getInfo(CheckStatusWrapper* status,
1306 unsigned int itemsLength, const unsigned char* items,
1307 unsigned int bufferLength, unsigned char* buffer)
1308{
1309/**************************************
1310 *
1311 * g d s _ b l o b _ i n f o
1312 *
1313 **************************************
1314 *
1315 * Functional description
1316 * Provide information on blob object.
1317 *
1318 **************************************/
1319 try
1320 {
1321 reset(status);
1322
1323 CHECK_HANDLE(blob, isc_bad_segstr_handle);
1324
1325 Rdb* rdb = blob->rbl_rdb;
1326 CHECK_HANDLE(rdb, isc_bad_db_handle);
1327
1328 if (blob->rbl_info.getLocalInfo(itemsLength, items, bufferLength, buffer))
1329 return;
1330
1331 fb_assert(!blob->isCached());
1332
1333 rem_port* port = rdb->rdb_port;
1334 RefMutexGuard portGuard(*port->port_sync, FB_FUNCTION);
1335
1336 info(status, rdb, op_info_blob, blob->rbl_id, 0,
1337 itemsLength, items, 0, 0, bufferLength, buffer);
1338 }
1339 catch (const Exception& ex)
1340 {
1341 ex.stuffException(status);
1342 }
1343}
1344
1345
1346void Blob::freeClientData(CheckStatusWrapper* status, bool force)

Callers 6

loadInfoMethod · 0.45
check_statement_typeFunction · 0.45
get_next_msg_noFunction · 0.45
infoMethod · 0.45
prepare_statementMethod · 0.45
sendInlineBlobMethod · 0.45

Calls 15

CHECK_HANDLEFunction · 0.85
infoFunction · 0.85
MERGE_database_infoFunction · 0.85
GdsClass · 0.85
unsupportedFunction · 0.85
REMOTE_find_requestFunction · 0.85
getDbPathInfoFunction · 0.85
isCachedMethod · 0.80
versionInfoMethod · 0.80
getClumpTagMethod · 0.80
hasOverflowMethod · 0.80

Tested by

no test coverage detected