Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 991 | |
| 992 | // Format implements the NodeFormatter interface. |
| 993 | func (node *ArrayFlatten) Format(ctx *FmtCtx) { |
| 994 | ctx.WriteString("ARRAY ") |
| 995 | exprFmtWithParen(ctx, node.Subquery) |
| 996 | if ctx.HasFlags(FmtParsable) { |
| 997 | if t, ok := node.Subquery.(*DTuple); ok { |
| 998 | if len(t.D) == 0 { |
| 999 | ctx.WriteString(":::") |
| 1000 | ctx.Buffer.WriteString(node.typ.SQLString()) |
| 1001 | } |
| 1002 | } |
| 1003 | } |
| 1004 | } |
| 1005 | |
| 1006 | // Exprs represents a list of value expressions. It's not a valid expression |
| 1007 | // because it's not parenthesized. |
nothing calls this directly
no test coverage detected