MCPcopy Create free account
hub / github.com/duckdb/duckdb / ToSQL

Method ToSQL

src/function/scalar_macro_function.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42string ScalarMacroFunction::ToSQL() const {
43 // In case of nested macro's we need to fix it a bit
44 auto expression_copy = expression->Copy();
45 RemoveQualificationRecursive(expression_copy);
46 return MacroFunction::ToSQL() + StringUtil::Format("(%s)", expression_copy->ToString());
47}
48
49} // namespace duckdb

Callers

nothing calls this directly

Calls 3

CopyMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected