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

Function PAR_find_proc_field

src/jrd/par.cpp:776–789  ·  view source on GitHub ↗

Look for named field in procedure output fields.

Source from the content-addressed store, hash-verified

774
775// Look for named field in procedure output fields.
776SSHORT PAR_find_proc_field(const jrd_prc* procedure, const MetaName& name)
777{
778 const Array<NestConst<Parameter> >& list = procedure->getOutputFields();
779
780 Array<NestConst<Parameter> >::const_iterator ptr = list.begin();
781 for (const Array<NestConst<Parameter> >::const_iterator end = list.end(); ptr < end; ++ptr)
782 {
783 const Parameter* param = *ptr;
784 if (name == param->prm_name)
785 return param->prm_number;
786 }
787
788 return -1;
789}
790
791
792// Parse a counted argument list, given the count.

Callers 2

parseMethod · 0.85
PAR_make_fieldFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected