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

Function resolve_fields

src/gpre/sqe.cpp:2826–2853  ·  view source on GitHub ↗

Out of alphabetical order.

Source from the content-addressed store, hash-verified

2824
2825// Out of alphabetical order.
2826static bool resolve_fields(gpre_nod*& fields, gpre_rse* selection)
2827{
2828 bool aggregate = false;
2829
2830 gpre_nod** ptr = fields->nod_arg;
2831 int count = fields->nod_count;
2832
2833 for (int i = 0; i < count; i++)
2834 {
2835 gpre_nod*& node = ptr[i];
2836
2837 if (node->nod_type == nod_asterisk)
2838 {
2839 const int old_count = count;
2840 fields = explode_asterisk(fields, i, selection);
2841 count = fields->nod_count;
2842 i += count - old_count;
2843 ptr = fields->nod_arg;
2844 }
2845 else
2846 {
2847 aggregate |= SQE_resolve(&node, NULL, selection);
2848 pair(node, 0);
2849 }
2850 }
2851
2852 return aggregate;
2853}
2854
2855
2856//____________________________________________________________

Callers 2

par_rseFunction · 0.85
par_selectFunction · 0.85

Calls 3

explode_asteriskFunction · 0.85
SQE_resolveFunction · 0.85
pairFunction · 0.70

Tested by

no test coverage detected