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

Method putSubFunction

src/dsql/DsqlCompilerScratch.cpp:693–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693void DsqlCompilerScratch::putSubFunction(DeclareSubFuncNode* subFunc, bool replace)
694{
695 if (!replace && subFunctions.exist(subFunc->name))
696 {
697 status_exception::raise(
698 Arg::Gds(isc_dsql_duplicate_spec) << subFunc->name);
699 }
700
701 subFunctions.put(subFunc->name, subFunc);
702}
703
704DeclareSubProcNode* DsqlCompilerScratch::getSubProcedure(const MetaName& name)
705{

Callers 1

dsqlPassMethod · 0.80

Calls 4

raiseFunction · 0.85
GdsClass · 0.85
existMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected