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

Method dsqlPass

src/dsql/AggNodes.cpp:99–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99AggNode* AggNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
100{
101 if (dsqlScratch->isPsql())
102 {
103 ERRD_post(Arg::Gds(isc_sqlerr) << Arg::Num(-104) <<
104 Arg::Gds(isc_dsql_command_err));
105 }
106
107 if (!(dsqlScratch->inSelectList || dsqlScratch->inWhereClause || dsqlScratch->inGroupByClause ||
108 dsqlScratch->inHavingClause || dsqlScratch->inOrderByClause))
109 {
110 // not part of a select list, where clause, group by clause,
111 // having clause, or order by clause
112 ERRD_post(Arg::Gds(isc_sqlerr) << Arg::Num(-104) <<
113 Arg::Gds(isc_dsql_agg_ref_err));
114 }
115
116 return dsqlCopy(dsqlScratch);
117}
118
119string AggNode::internalPrint(NodePrinter& printer) const
120{

Callers

nothing calls this directly

Calls 4

ERRD_postFunction · 0.85
GdsClass · 0.85
NumClass · 0.85
isPsqlMethod · 0.80

Tested by

no test coverage detected