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

Function pass1_alias_concat

src/dsql/pass1.cpp:1746–1761  ·  view source on GitHub ↗

Concatenate 2 input strings together for a new alias string Note: Both input params can be empty.

Source from the content-addressed store, hash-verified

1744// Concatenate 2 input strings together for a new alias string
1745// Note: Both input params can be empty.
1746static string pass1_alias_concat(const string& input1, const string& input2)
1747{
1748 string output;
1749
1750 if (input1.hasData())
1751 output.append(input1);
1752
1753 if (input2.hasData())
1754 {
1755 if (output.hasData())
1756 output.append(" ");
1757 output.append(input2);
1758 }
1759
1760 return output;
1761}
1762
1763
1764// Wrapper for pass1_rse_impl. Substitute recursive CTE alias (if needed) and call pass1_rse_impl.

Callers 2

PASS1_make_contextFunction · 0.85
PASS1_derived_tableFunction · 0.85

Calls 2

hasDataMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected