Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 902 | |
| 903 | // Format implements the NodeFormatter interface. |
| 904 | func (node *ArrayFlatten) Format(ctx *FmtCtx) { |
| 905 | ctx.WriteString("ARRAY ") |
| 906 | exprFmtWithParen(ctx, node.Subquery) |
| 907 | if ctx.HasFlags(FmtParsable) { |
| 908 | if t, ok := node.Subquery.(*DTuple); ok { |
| 909 | if len(t.D) == 0 { |
| 910 | ctx.WriteString(":::") |
| 911 | ctx.Buffer.WriteString(node.typ.SQLString()) |
| 912 | } |
| 913 | } |
| 914 | } |
| 915 | } |
| 916 | |
| 917 | // Exprs represents a list of value expressions. It's not a valid expression |
| 918 | // because it's not parenthesized. |
nothing calls this directly
no test coverage detected