MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_close_blob

Function API_ROUTINE isc_close_blob

src/yvalve/why.cpp:1815–1835  ·  view source on GitHub ↗

Close a blob opened either for reading or writing (creation).

Source from the content-addressed store, hash-verified

1813
1814// Close a blob opened either for reading or writing (creation).
1815ISC_STATUS API_ROUTINE isc_close_blob(ISC_STATUS* userStatus, isc_blob_handle* blobHandle)
1816{
1817 StatusVector status(userStatus);
1818 CheckStatusWrapper statusWrapper(&status);
1819
1820 try
1821 {
1822 RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
1823
1824 blob->close(&statusWrapper);
1825
1826 if (!(status.getState() & IStatus::STATE_ERRORS))
1827 *blobHandle = 0;
1828 }
1829 catch (const Exception& e)
1830 {
1831 e.stuffException(&statusWrapper);
1832 }
1833
1834 return status[1];
1835}
1836
1837
1838// Commit a transaction.

Callers

nothing calls this directly

Calls 4

translateHandleFunction · 0.85
closeMethod · 0.45
getStateMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected