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

Method registerTrigger

src/plugins/udr_engine/UdrEngine.cpp:234–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 }
233
234 void registerTrigger(ThrowStatusWrapper* status, const char* name,
235 IUdrTriggerFactory* factory)
236 {
237 if (triggersMap.exist(name))
238 {
239 static const ISC_STATUS statusVector[] = {
240 isc_arg_gds, isc_random,
241 isc_arg_string, (ISC_STATUS) "Duplicate UDR trigger",
242 //// TODO: isc_arg_gds, isc_random, isc_arg_string, (ISC_STATUS) name,
243 isc_arg_end
244 };
245
246 throw FbException(status, statusVector);
247 }
248
249 triggersMap.put(name, factory);
250 }
251
252private:
253 PathName moduleName;

Callers

nothing calls this directly

Calls 3

FbExceptionClass · 0.85
existMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected