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

Method registerFunction

src/plugins/udr_engine/UdrEngine.cpp:198–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 void registerFunction(ThrowStatusWrapper* status, const char* name,
199 IUdrFunctionFactory* factory)
200 {
201 if (functionsMap.exist(name))
202 {
203 static const ISC_STATUS statusVector[] = {
204 isc_arg_gds, isc_random,
205 isc_arg_string, (ISC_STATUS) "Duplicate UDR function",
206 //// TODO: isc_arg_gds, isc_random, isc_arg_string, (ISC_STATUS) name,
207 isc_arg_end
208 };
209
210 throw FbException(status, statusVector);
211 }
212
213 functionsMap.put(name, factory);
214 }
215
216 void registerProcedure(ThrowStatusWrapper* status, const char* name,
217 IUdrProcedureFactory* factory)

Callers

nothing calls this directly

Calls 3

FbExceptionClass · 0.85
existMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected