MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / fmt_table_call

Method fmt_table_call

src/sql-parser/src/ast/defs/expr.rs:1305–1307  ·  view source on GitHub ↗

Render this call in table-function position (`FROM f(...)`, `ROWS FROM (f(...))`), where the `extract(a FROM b)` / `position(a IN b)` special forms are *not* valid syntax — only the scalar-expression parser dispatches to them. Forces the plain comma form (with the name quoted to dodge the special grammar) so the round trip stays stable.

(&self, f: &mut AstFormatter<W>)

Source from the content-addressed store, hash-verified

1303 /// dispatches to them. Forces the plain comma form (with the name quoted
1304 /// to dodge the special grammar) so the round trip stays stable.
1305 pub(crate) fn fmt_table_call<W: fmt::Write>(&self, f: &mut AstFormatter<W>) {
1306 self.fmt_call(f, false);
1307 }
1308
1309 fn fmt_call<W: fmt::Write>(&self, f: &mut AstFormatter<W>, allow_special_form: bool) {
1310 // This block handles printing function calls that have special parsing. In stable mode, the

Callers 1

fmtMethod · 0.80

Calls 1

fmt_callMethod · 0.80

Tested by

no test coverage detected