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

Method registerProcedure

src/plugins/udr_engine/UdrEngine.cpp:216–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 }
215
216 void registerProcedure(ThrowStatusWrapper* status, const char* name,
217 IUdrProcedureFactory* factory)
218 {
219 if (proceduresMap.exist(name))
220 {
221 static const ISC_STATUS statusVector[] = {
222 isc_arg_gds, isc_random,
223 isc_arg_string, (ISC_STATUS) "Duplicate UDR procedure",
224 //// TODO: isc_arg_gds, isc_random, isc_arg_string, (ISC_STATUS) name,
225 isc_arg_end
226 };
227
228 throw FbException(status, statusVector);
229 }
230
231 proceduresMap.put(name, factory);
232 }
233
234 void registerTrigger(ThrowStatusWrapper* status, const char* name,
235 IUdrTriggerFactory* factory)

Callers

nothing calls this directly

Calls 3

FbExceptionClass · 0.85
existMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected