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

Method rethrowDdlException

src/dsql/DsqlStatements.cpp:40–57  ·  view source on GitHub ↗

Rethrow an exception with isc_no_meta_update and prefix codes.

Source from the content-addressed store, hash-verified

38
39// Rethrow an exception with isc_no_meta_update and prefix codes.
40void DsqlStatement::rethrowDdlException(status_exception& ex, bool metadataUpdate, DdlNode* node)
41{
42 Arg::StatusVector newVector;
43
44 if (metadataUpdate)
45 newVector << Arg::Gds(isc_no_meta_update);
46
47 node->putErrorPrefix(newVector);
48
49 const ISC_STATUS* status = ex.value();
50
51 if (status[1] == isc_no_meta_update)
52 status += 2;
53
54 newVector.append(Arg::StatusVector(status));
55
56 status_exception::raise(newVector);
57}
58
59void DsqlStatement::release()
60{

Callers

nothing calls this directly

Calls 6

GdsClass · 0.85
raiseFunction · 0.85
StatusVectorClass · 0.70
putErrorPrefixMethod · 0.45
valueMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected