aboutsummaryrefslogtreecommitdiff
path: root/pkg/xtools/catquery/cqnqpars.x
blob: d776992599012c549496f5ef49b45bbf9260b9b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include "cqdef.h"


# CQ_NQPARS -- Return the number of query parameters.  Do we really need
# a special routine ?

int procedure cq_nqpars (cq)

pointer	cq				#I the catalog descriptor

begin
	if (CQ_CAT(cq) == NULL)
	    return (0)
	if (CQ_CATNO(cq) < 1 || CQ_CATNO(cq) > CQ_NRECS(cq))
	    return (0)

	return (CQ_NQPARS(CQ_CAT(cq)))
end